xieliwei (xieliwei) wrote in lj_everywhere,
xieliwei
xieliwei
lj_everywhere

www.

I finally got the base system up and running. The problem is, when I access the site through www.$domain, I got a 404 error by Apache even though $domain works fine. It should also be noted that .$domain is used to directly access a user's journal.


--------------------------------------------------------------
My apache configuration
--------------------------------------------------------------
ServerName www.1234.com
ServerAdmin admin@1234.com
ErrorLog /var/log/apache/error.log
LogLevel warn
DocumentRoot /home/lj/htdocs
User lj
Group lj
Timeout 30
KeepAlive Off
PerlSetEnv LJHOME /home/lj
PerlRequire /home/lj/cgi-bin/modperl.pl
ServerAlias 1234.com *.1234.com
TransferLog /var/log/apache/access.log
--------------------------------------------------------------


--------------------------------------------------------------
404 error by Apache
--------------------------------------------------------------
Not Found
The requested URL / was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------


--------------------------------------------------------------
access.log
--------------------------------------------------------------
//Accessing user.1234.com
192.168.1.1 - - [26/Mar/2005:19:10:08 +0800] "GET / HTTP/1.1" 200 118
//Accessing 1234.com
192.168.1.1 - - [26/Mar/2005:19:10:14 +0800] "GET / HTTP/1.1" 304 -
//Accessing www.1234.com
192.168.1.1 - - [26/Mar/2005:19:10:16 +0800] "GET / HTTP/1.1" 404 -
--------------------------------------------------------------



error.log (set to debug level) is empty.

Of course, 1234.com is just an replaced example, the original domain is 100% working.
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 7 comments