Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache help!!!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
linedpaper
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2003
Posts: 135
Location: Fullerton, CA, USA

PostPosted: Sat Jun 14, 2003 9:10 pm    Post subject: Apache help!!! Reply with quote

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
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Sat Jun 14, 2003 10:49 pm    Post subject: specifying dirs in apache Reply with quote

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
View user's profile Send private message
linedpaper
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2003
Posts: 135
Location: Fullerton, CA, USA

PostPosted: Sun Jun 15, 2003 1:28 am    Post subject: Reply with quote

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
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Sun Jun 15, 2003 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
linedpaper
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2003
Posts: 135
Location: Fullerton, CA, USA

PostPosted: Sun Jun 15, 2003 6:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Sun Jun 15, 2003 6:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
linedpaper
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2003
Posts: 135
Location: Fullerton, CA, USA

PostPosted: Mon Jun 16, 2003 12:50 am    Post subject: Reply with quote

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
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Mon Jun 16, 2003 4:55 am    Post subject: Reply with quote

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
View user's profile Send private message
linedpaper
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2003
Posts: 135
Location: Fullerton, CA, USA

PostPosted: Mon Jun 16, 2003 7:32 am    Post subject: Reply with quote

Sorry...I meant virtual servers. Within the same instance of apache. Got to watch my wording.

Tim
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Mon Jun 16, 2003 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum