View previous topic :: View next topic |
Author |
Message |
linedpaper Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 21 Apr 2003 Posts: 135 Location: Fullerton, CA, USA
|
Posted: Sat Jun 14, 2003 9:10 pm Post subject: Apache help!!! |
|
|
Ok I have a problem. I've never run more than one site off of the same apache server but right now I need to. My problem is, is that the first one works great, the second one however I get a 403 forbidden, you are not permitted to access / on port 82 of gentoo. Please help me out. I know it isn't directory permissions because i changed those around a bit. They should alow it now. Help!!
Tim |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Sat Jun 14, 2003 10:49 pm Post subject: specifying dirs in apache |
|
|
Whats the path within the file system of the dir you're tying to get to? You may to tell Apache it's allowed to server it if it's not part of /home/httpd/htdocs/
Look at your /etc/apache/conf/commonapache.conf for an idea of what to add to it.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
linedpaper Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 21 Apr 2003 Posts: 135 Location: Fullerton, CA, USA
|
Posted: Sun Jun 15, 2003 1:28 am Post subject: |
|
|
The path that the second web is in is /home/httpd/web2/ I don't see where I can add that to the commonapache.conf file. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slartibartfasz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_kif.gif)
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Sun Jun 15, 2003 11:51 am Post subject: |
|
|
there should be a section looking like
Code: |
<Directory /some/path>
</Directory>
|
change /some/path to what u want it to be. also look for DocumentRoot - u will have to change that too...[/code] _________________ To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
linedpaper Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 21 Apr 2003 Posts: 135 Location: Fullerton, CA, USA
|
Posted: Sun Jun 15, 2003 6:45 pm Post subject: |
|
|
i don't know how proper it is to do this but I just created new folders inside of htdocs and neither of my webs are running on the default server anymore, they are both running directly out of the folder they are in inside of htdocs. It works, is it still secure? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slartibartfasz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_kif.gif)
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Sun Jun 15, 2003 6:51 pm Post subject: |
|
|
linedpaper wrote: | i don't know how proper it is to do this but I just created new folders inside of htdocs and neither of my webs are running on the default server anymore, they are both running directly out of the folder they are in inside of htdocs. It works, is it still secure? |
sorry - this is a little bit confusing - it would help if u could express this a little bit more structured... _________________ To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
linedpaper Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 21 Apr 2003 Posts: 135 Location: Fullerton, CA, USA
|
Posted: Mon Jun 16, 2003 12:50 am Post subject: |
|
|
When I created a second web page to be hosted by the same apache server I just created two new servers. They are both inside of htdocs. One is in a folder called web1 and the other web2. Is it proper to just make folders for webs inside of htdocs or should I be doing it a different way? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slartibartfasz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_kif.gif)
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Mon Jun 16, 2003 4:55 am Post subject: |
|
|
linedpaper wrote: | Is it proper to just make folders for webs inside of htdocs or should I be doing it a different way? |
no thats the way it is normally done...
what is not proper is that u say u created two new servers?? why not use just one for the two sites? apache is built to serve hundreds of different pages - with comletely different domain names if u want to...
please tell us how u 'created' the second server inside htdocs... _________________ To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
linedpaper Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 21 Apr 2003 Posts: 135 Location: Fullerton, CA, USA
|
Posted: Mon Jun 16, 2003 7:32 am Post subject: |
|
|
Sorry...I meant virtual servers. Within the same instance of apache. Got to watch my wording.
Tim |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
slartibartfasz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_kif.gif)
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Mon Jun 16, 2003 2:42 pm Post subject: |
|
|
ah - ok - well no, its no problem u can handle this however u like. there is no crucial difference between using /htdocs or any other folder... _________________ To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|