View Single Post
  #22  
Old 12-31-2006, 09:15 AM
surfman surfman is offline
Member
 
Join Date: Dec 2006
Posts: 27
I checked the apache error log, found all shtml files were sent to be like these:

PHP Code:
[Sat Dec 30 09:52:27 2006] [error] [client 127.0.0.1File does not exist: /usr/local/apache/htdocs/news/localnews/1475.shtml
[Sat Dec 30 09:52:27 2006] [error] [client 127.0.0.1File does not exist: /usr/local/apache/htdocs/404.shtml
[Sat Dec 30 09:52:29 2006] [error] [client 127.0.0.1File does not exist: /usr/local/apache/htdocs/news/localnews/index-13.shtml
[Sat Dec 30 09:52:29 2006] [error] [client 127.0.0.1File does not exist: /usr/local/apache/htdocs/404.shtml 
all shtml files were sent to:

/usr/local/apache/htdocs/news/localnews/1475.shtml

rather than

/home/myusername/public_html/localnews/1475.shtml

all my shtml pages are stored at folder

/home/myusername/public_html

NOT

/usr/local/apache/htdocs

I guess that's why http://www.mydomain.com is not working while http://www.mydomain.com:78 is working.

I checked with apache settings,

<VirtualHost my.ip.addre.ss>
ServerAlias mydomain.net
ServerAdmin webmaster@mydomain.net
DocumentRoot /home/myusername/public_html
BytesLog domlogs/mydomain.net-bytes_log
ServerName www.mydomain.net

User myusername
Group myusername
CustomLog /usr/local/apache/domlogs/mydomain.net combined
ScriptAlias /cgi-bin/ /home/myusername/public_html/cgi-bin/
</VirtualHost>


the red line for my DocumentRoot is correct. why apache still looks for shtml at the folder /usr/local/apache/htdocs ?

how can I correct this issue? thanks.

Last edited by surfman; 12-31-2006 at 09:20 AM..
Reply With Quote