logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: White pages :(
Author
chrimeg



Joined: 17 May 2007
Posts: 8

PostPosted: Thu 17 May '07 0:38    Post subject: White pages :( Reply with quote

Hello All,

Just switched over from IIS. Apache seems to be a great webserver. However, I'm haveing a little trouble.

When checking my site on local network via http://192.168.*.*** everything is fine. When I try to access it via www.mydomain.com it displays a blank white page.

This is also true if I try to access via my public IP address.

I've checked my firewalls, done port scans etc. Port 80 is open. So I have no idea what the problem is.

I'm using XP pro and the newest version of apache.

Also, when I stop the apache server service and try to access my site via www.mydomain.com I get the "Page Cannot Be Displayed" message. So it seems liike the requests are coming through but apache is not serving the index document.

Any help would be great!

Thanks.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Thu 17 May '07 4:06    Post subject: Reply with quote

Not a lot of info to work with here.

Anything in the Apache error.log file? Does the Apache access.log file have an entry for your blank-page request?

When you get a blank white page, try View Source in the browser to see if it provides any additional clues.

If you use FireFox, also try Tools Page-Info.

-tom-
Back to top
chrimeg



Joined: 17 May 2007
Posts: 8

PostPosted: Thu 17 May '07 17:23    Post subject: Reply with quote

Well tried viewing the source code in firefox...nothing in the code box as the page is not being displayed.

Also tried the tools page info from firefox. Size is 0 bytes. So it seems as though the page is not being served.

So far in the error logs I have the following:

Wed May 16 22:51:10 2007] [notice] Child 3296: Exit event signaled. Child process is ending.
ADMIN NOTE: trimmed long list...
[Wed May 16 23:01:54 2007] [notice] Child 2008: Starting 250 worker threads.
[Wed May 16 23:01:55 2007] [notice] Child 2008: Starting thread to listen on port 80.
[Thu May 17 02:28:49 2007] [error] [client 63.123.238.8] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/robots.txt
[Thu May 17 03:48:00 2007] [error] [client 209.147.127.219] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/en-ca
[Thu May 17 09:41:40 2007] [error] [client 66.194.6.95] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/en-ca
[Thu May 17 10:37:50 2007] [error] [client 209.147.127.219] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/en-ca
[Thu May 17 10:38:01 2007] [error] [client 209.147.127.218] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/en-ca
[Thu May 17 11:43:20 2007] [error] [client 65.60.211.189] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/en-ca, referer: http://us.f609.mail.yahoo.com/dc/launch?.rand=7c3eg9gc2siqf

And the access log:

192.168.0.100 - - [16/May/2007:22:45:08 -0230] "GET / HTTP/1.1" 200 11983
192.168.0.100 - - [16/May/2007:22:45:08 -0230] "GET /en-ca/heading.html HTTP/1.1" 200 2280
192.168.0.100 - - [16/May/2007:22:45:08 -0230] "GET /en-ca/extra.html HTTP/1.1" 200 1615
192.168.0.100 - - [16/May/2007:22:45:09 -0230] "GET /en-ca/button.html HTTP/1.1" 200 3548
ADMIN NOTE: trimmed long list...
192.168.0.100 - - [16/May/2007:22:45:12 -0230] "GET /en-ca/tocbottom.gif HTTP/1.1" 200 1898
205.251.40.122 - - [16/May/2007:22:46:08 -0230] "GET / HTTP/1.1" 200 11983
192.168.0.100 - - [16/May/2007:22:51:27 -0230] "GET / HTTP/1.1" 200 44
192.168.0.100 - - [16/May/2007:23:02:30 -0230] "GET / HTTP/1.1" 304 -
205.251.40.122 - - [16/May/2007:23:03:19 -0230] "GET / HTTP/1.1" 200 44
63.123.238.8 - - [17/May/2007:02:28:49 -0230] "GET /robots.txt HTTP/1.1" 404 208
63.123.238.8 - - [17/May/2007:02:28:49 -0230] "GET / HTTP/1.1" 200 44
209.147.127.219 - - [17/May/2007:03:48:00 -0230] "GET /en-ca/p_93.html HTTP/1.1" 404 213
66.194.6.95 - - [17/May/2007:09:41:40 -0230] "GET /en-ca/p_93.html HTTP/1.1" 404 213
66.194.6.72 - - [17/May/2007:09:44:03 -0230] "GET / HTTP/1.1" 200 44
209.147.127.219 - - [17/May/2007:10:37:50 -0230] "GET /en-ca/p_93.html HTTP/1.1" 404 213
209.147.127.218 - - [17/May/2007:10:38:01 -0230] "GET /en-ca/p_93.html HTTP/1.1" 404 213
65.60.211.189 - - [17/May/2007:11:43:20 -0230] "GET /en-ca/p_93.html HTTP/1.1" 404 213

Hope this helps. I don't understand. If a file does not exist, why would it work with local 192.168.0.100 and not with mydomain.com?
Back to top
chrimeg



Joined: 17 May 2007
Posts: 8

PostPosted: Thu 17 May '07 18:08    Post subject: Reply with quote

Well I cleaned the logs and restarted the router, modem, computers etc and tried the access the website from both external and internal ip's.

So here are the logs:

Error Log First:
[[Thu May 17 13:16:15 2007] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu May 17 13:16:16 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Thu May 17 13:16:16 2007] [notice] Server built: Jan 9 2007 23:17:20
[Thu May 17 13:16:16 2007] [notice] Parent: Created child process 1684
[Thu May 17 13:16:16 2007] [notice] Child 1684: Child process is running
[Thu May 17 13:16:16 2007] [notice] Child 1684: Acquired the start mutex.
[Thu May 17 13:16:16 2007] [notice] Child 1684: Starting 250 worker threads.
[Thu May 17 13:16:16 2007] [notice] Child 1684: Starting thread to listen on port 80.
[Thu May 17 13:27:07 2007] [error] [client 207.46.98.53] File does not exist: C:/websites/robots.txt
[Thu May 17 13:30:39 2007] [error] [client 192.168.0.102] File does not exist: C:/websites/en-ca/button1on.jpg, referer: http://192.168.0.100/en-ca/button.html
ADMIN NOTE: trimmed long list...
[Thu May 17 13:30:39 2007] [error] [client 192.168.0.102] File does not exist: C:/websites/en-ca/button7on.jpg, referer: http://192.168.0.100/en-ca/button.html

Now the access log:
205.251.40.122 - - [17/May/2007:13:20:18 -0230] "GET / HTTP/1.1" 200 11983
207.46.98.53 - - [17/May/2007:13:27:07 -0230] "GET /robots.txt HTTP/1.0" 404 208
207.46.98.53 - - [17/May/2007:13:27:08 -0230] "GET /en-ca/front.html HTTP/1.0" 200 4957
192.168.0.102 - - [17/May/2007:13:30:38 -0230] "GET / HTTP/1.1" 304 -
192.168.0.102 - - [17/May/2007:13:30:38 -0230] "GET /en-ca/heading.html HTTP/1.1" 304 -
192.168.0.102 - - [17/May/2007:13:30:39 -0230] "GET /en-ca/button.html HTTP/1.1" 304 -
ADMIN NOTE: trimmed long list...
192.168.0.102 - - [17/May/2007:13:30:41 -0230] "GET /en-ca/blank3.html HTTP/1.1" 304 -
192.168.0.102 - - [17/May/2007:13:30:41 -0230] "GET /en-ca/blank4.html HTTP/1.1" 304 -

As you can see the 205.251*.* ip on top. So it seems access thorugh port 80 is getting through. Just not serving the page Sad

What is going on here...been trying for days now.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Thu 17 May '07 18:19    Post subject: Reply with quote

Did you change your web root from C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
to C:\websites?

If so - be sure to also change the <Directory> block in httpd.conf to match your new ServerRoot.

Also - clear your browser's cache before re-testing to make sure you aren't seeing data cached in your browser instead of real responses.

-tom-
Back to top
chrimeg



Joined: 17 May 2007
Posts: 8

PostPosted: Thu 17 May '07 18:29    Post subject: Reply with quote

Not sure what you mean by the web root but I have the following:

Documentroot "C:/websites"

The directory:

<Directory "C:/websites">

Should my serverroot also be changed?

I done a webserver software lookup and it reported I was hosting on an apache server. So now I'm sure my requests are getting through.

Seems like I have a configuration error in apache.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Thu 17 May '07 18:38    Post subject: Reply with quote

Sorry! I meant DocumentRoot, not ServerRoot.

Where, exactly, is the en-ca directory? Is it C:\webroot\en-ca or C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\en-ca ?

-tom-
Back to top
chrimeg



Joined: 17 May 2007
Posts: 8

PostPosted: Thu 17 May '07 18:44    Post subject: Reply with quote

its in the C:\websites\en-ca directory.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Thu 17 May '07 18:56    Post subject: Reply with quote

The file C:\websites\en-ca\button1on.jpg really exists ?
    (even though the log says "File does not exist: C:/websites/en-ca/button1on.jpg" at Thu May 17 13:30:39 2007 GMT)
That's curious!

I also noticed that external requests ask for /en-ca/p_93.html - but local (192.168.*) requests don't request it.
Does this file exist too? Does your app somehow distinguish remote vs. local users?

A few more things to check:
    Do you have any Alias or VirtualHost directives in your httpd.conf, or in any .conf files that httpd.conf includes?

    Is there any file named .htaccess (or similar) in the en-ca directory?

    Do the permissions on the files in en-ca (and on the en-ca directory itself) allow Apache to read them?

-tom-
Back to top
chrimeg



Joined: 17 May 2007
Posts: 8

PostPosted: Tue 22 May '07 0:03    Post subject: Reply with quote

Well checked for those files in the directory...they don't exist. The html code is generated with wysiwyg software.

Those missing files should not make a difference. Like I sain viewing the site locally is fine. Just can't get it via the public address.

When say persmissions on the those website files...where in a apche should I check that? Or is it a windows xp security thing?

I do not have any alias or virutal hosts setup.

There is no .htaccess or similar file.

Again, what do you mean by allowing apache access to read the files?

Thanks for all the help by the way!
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Tue 22 May '07 3:31    Post subject: Reply with quote

re: "what do you mean by allowing apache access to read the files"
I meant Windows permissions. In Windows Explorer - Right-click [Properties] [Security tab]

You might also check that your ServerName directive is the correct name for accessing your site externally, not just internally.
Back to top
chrimeg



Joined: 17 May 2007
Posts: 8

PostPosted: Tue 22 May '07 15:00    Post subject: Reply with quote

Checked the directory permissions and everything seems fine.

What should my server name be? Right now I have it set to mydomain.com:80
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Tue 22 May '07 16:26    Post subject: Reply with quote

re: "What should my server name be"

It should be whatever your (external) users put after the http:// in their browser when they visit your site.
Back to top
chrimeg



Joined: 17 May 2007
Posts: 8

PostPosted: Tue 22 May '07 16:39    Post subject: Reply with quote

Well the servername is entered correctly. Still got the same problem. The webbrowser just hangs there and never displays the website.

Really stumped on this one. Any other suggestions?

Also, I figured I would try and uninstall and reinstall apache. There is no uninstall in the add/remove programs or the programs directory. Is this the norm?
Back to top


Reply to topic   Topic: White pages :( View previous topic :: View next topic
Post new topic   Forum Index -> Apache