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. |
Hi,
To what directory does your DocumentRoot directive point? (Can be found in your httpd.conf.) |
points to /var/www/html/homesmartagent
|
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. |
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> |
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? |
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.
|
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. |