LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Help with apache (https://www.linuxquestions.org/questions/linux-networking-3/help-with-apache-297167/)

Elguapo 03-03-2005 09:48 AM

Help with apache
 
I have an new linux box up and running, and I have apache installed. When I try to view my url, the page comes up as a complete blank. I have a simple helloworld test file in there but it is not being shown.

I have ran ./apachectl configtest and it says everything is okiedokie. But still a no go on the helloworld test page.

druuna 03-03-2005 09:58 AM

Hi,

To what directory does your DocumentRoot directive point? (Can be found in your httpd.conf.)

Elguapo 03-03-2005 09:59 AM

points to /var/www/html/homesmartagent

druuna 03-03-2005 10:03 AM

Hi again,

I do assume that this is the place your test.html (or simular) is placed at this location.

Do you actually give a file when giving the url? If not: Is there a index.html (or simular) present and are these 'default' files present in your httpd.conf? (DirectoryIndex).

Tell a bit more, there's very little to go on.

Elguapo 03-03-2005 10:07 AM

no I am not using the file name. I have the DirectoryIndex set. Here is the virtualhost portion of my httpd2.conf file. (I put the spaces between the www and com because I dont have 5 posts yet. Also when I do put the file, it still does not display the hello world page.

NameVirtualHost *
<VirtualHost *>
DocumentRoot /var/www/homesmartagent
ServerName www. homemsmartagent .com
ServerAlias homesmartagent .com
DirectoryIndex index.html
<Directory "/var/www/homesmaragent">
allow from all
</Directory>
</VirtualHost>

druuna 03-03-2005 10:14 AM

Hi,

I hope this is a 'typo', but this:

points to /var/www/html/homesmartagent (from post #3)

and this:

DocumentRoot /var/www/homesmartagent (from post #5)

Is not the same.

Also: are the file permissions/ownership correct?

Elguapo 03-03-2005 10:18 AM

I noticed that right after I posted it. I changed it, and restart apache and it is still a no go. I have chmod 777 all the way out to /var and it still wont display anything.

Elguapo 03-03-2005 10:23 AM

ok I got it to work now, I just noticed that I had NamedVirtualHost in the wrong place.

Thank you again for your help.


All times are GMT -5. The time now is 09:51 AM.