tec Posted September 13, 2007 Share Posted September 13, 2007 I had some people install a firewall on my server two days ago and they managed to mess up my server, everything was fixed except one!, every time i try to load any of my websites i get this: index of / awstats/ thats it!!! I did check my /var/www/html and i found nothing, i found all the files in /var/www/vhosts is the path is the problem? in my httpd.conf i have Directory set to /var/www/html, any one knows how to fix this problem? Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/69191-apache-is-loading-the-wrong-dir/ Share on other sites More sharing options...
thedarkwinter Posted September 13, 2007 Share Posted September 13, 2007 It sounds like just changing the Directory in the httpd.conf should work. or renaming vhosts to html Alternatively you can ln -s /var/www/vhosts /var/www/html to create a symbolic link - that way the sites will exist in both places. cheers, tdw Quote Link to comment https://forums.phpfreaks.com/topic/69191-apache-is-loading-the-wrong-dir/#findComment-347767 Share on other sites More sharing options...
tec Posted September 13, 2007 Author Share Posted September 13, 2007 that wont help, for example i have on vhosts: cysalsa.com votasoft.com if i change vhosts to html and refresh my browser i get the sites above listed as directories. does this sound as an firewall problem or apache? Quote Link to comment https://forums.phpfreaks.com/topic/69191-apache-is-loading-the-wrong-dir/#findComment-347998 Share on other sites More sharing options...
thedarkwinter Posted September 14, 2007 Share Posted September 14, 2007 Okay i think what you need to do is specify the virtual hosts for each website with their full paths in httpd.conf Something along the lines of: <VirtualHost *> ServerAdmin root@myserver.com ServerName www.cysalsa.com ServerAlias cysalsa.com DocumentRoot /var/www/vhosts/cysalsa.com/ <Directory /var/www/vhosts/cysalsa.com/> Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig Order allow,deny allow from all </Directory> LogLevel warn </VirtualHost> <VirtualHost *> ServerAdmin root@myserver.com ServerName www.votasoft.com ServerAlias votasoft.com DocumentRoot /var/www/vhosts/votasoft.com/ <Directory /var/www/vhosts/votasoft.com/> Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig Order allow,deny allow from all </Directory> LogLevel warn </VirtualHost> Quote Link to comment https://forums.phpfreaks.com/topic/69191-apache-is-loading-the-wrong-dir/#findComment-348304 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.