Results 1 to 2 of 2
Hello,
When I installed my little apache I used
PHP Code:
hxxp : //127.0.0.1/cacti
to access my application which is stored in
PHP Code:
/ htdocs / cacti
Now I ...
- 04-02-2011 #1Just Joined!
- Join Date
- Apr 2004
- Posts
- 4
Apache configuration with vhosts
Hello,
When I installed my little apache I used
to access my application which is stored inPHP Code:hxxp://127.0.0.1/cacti
PHP Code:/htdocs/cacti
Now I added virtual hosts directive
And this sites sits inPHP Code:<VirtualHost *>
ServerAdmin myname at myfirm
DocumentRoot /htdocs/sites/myfirm
ServerName 3w.myfirm
ErrorDocument 404 /404.html
ErrorLog logs/myfirm-error_log
CustomLog logs/myfirm-access_log common
</VirtualHost>
But when I try to accessPHP Code:/htdocs/sites/myfirm
Apache tries to accessPHP Code:hxxp://127.0.0.1/cacti
and notPHP Code:/htdocs/sites/myfirm/cacti
So Apache considers the default root path asPHP Code:/htdocs/cacti
instead ofPHP Code:/htdocs/sites/myfirm/cacti
NB: As you can see my Apache is chrootedPHP Code:/htdocs/cacti
Any idea how could I solve my problem ?
Thanx
- 05-01-2011 #2Just Joined!
- Join Date
- Apr 2004
- Posts
- 4
I solved my problem by adding a new virtual host with
Code:ServerName 127.0.0.1


Reply With Quote