LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache Loads Wrong Page (https://www.linuxquestions.org/questions/linux-newbie-8/apache-loads-wrong-page-846054/)

deibele1 11-23-2010 11:46 AM

Apache Loads Wrong Page
 
I not a total noob to linux only a noob to apache
I am Running A lamp server on A VPS with myhosting.com. but try as i might i cant apache2 to load the right page. I have set document root to /slk/redretriever/
but when i load the page it still loads /var/www/vhosts/default/htdocs/
I cant figure out why please help.

p.s. I am running debian and have full root access

fordeck 11-23-2010 11:54 AM

One thing you might look at is whether or not the user that apache is run by has permissions to "/slk/redretriever"

Regards,

Fordeck

smart_shell 11-23-2010 12:04 PM

please post your httpd.conf.
usualy it happen if virtual host is incorrect.
for example if your config file has double settings for a one domain.

bathory 11-23-2010 01:46 PM

Hi,

Since the VPS is running debian, you should change the DocumentRoot in /etc/apache2/sites-enabled/default

Regards

CincinnatiKid 11-23-2010 03:35 PM

Did you restart Apache after you made the DocumentRoot change?

deibele1 12-01-2010 01:27 PM

I figured it out
 
in my version of apache2 httpd.conf is empty. and the normal apache files do nothing. but there is another file in conf.d
/etc/apache2/confd/zz010_psa_httpd.conf

i did not even know this file existed when i asked the question. but this is the file that apache2 listens to first. i changed where the vhost pointed to and viola


All times are GMT -5. The time now is 06:49 AM.