Jump to content

Apache is loading the wrong dir?


tec

Recommended Posts

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.

Link to comment
Share on other sites

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?

 

 

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.