Current time: 12-18-2017, 09:24 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
404 When starting a test
03-05-2011, 12:36 PM
Post: #1
404 When starting a test
Hi,

I recently setup an instance of webpagetest 2.1.1 using Apache on RHEL5 as the webserver and Windows XP for the test machine.

I've setup everything as per the webpagetest private instance documentation. When I try to start a test the web server immediately takes me to a results URL that 404's. The test does get initiated on the test machine so I don't think the problem is on that end.

Example 404 URL:
http://<wptdomain>/result/110305_B3_Q/

A directory structure does get created on the web server at:
/<docroot>/results/11/03/05/B3/Q

So I don't think it's a problem with read/write permissions. BTW - the same permissions are set for the tmp, work/jobs, and logs folder as well.

I'm on Apache/2.2.3 (mod_rewrite/headers/expires enabled), PHP 5.2.16, with GD installed and ffmpeg in the path.

Is there something else that I may need?

Thanks for your time.
Find all posts by this user
Quote this message in a reply
03-06-2011, 04:03 AM
Post: #2
RE: 404 When starting a test
Can you check you access log for the offending request? A 404 would usually mean that the mod_rewrite isn't working properly because even if the test data wasn't there the php would return a page of some kind (results.php specifically). The test result is probably the first page that has to be rewritten in the flow.

In the apache config for the webpagetest host, is the docroot configured to allowoverride all?
Visit this user's website Find all posts by this user
Quote this message in a reply
03-06-2011, 04:01 PM (This post was last modified: 03-06-2011 04:04 PM by ME512.)
Post: #3
RE: 404 When starting a test
(03-06-2011 04:03 AM)pmeenan Wrote:  Can you check you access log for the offending request? A 404 would usually mean that the mod_rewrite isn't working properly because even if the test data wasn't there the php would return a page of some kind (results.php specifically). The test result is probably the first page that has to be rewritten in the flow.

In the apache config for the webpagetest host, is the docroot configured to allowoverride all?

The webpage test host is running on Apache as a virtual host.

Here's the virtual host for the WPT instance:

Code:
<VirtualHost *:80>
    DocumentRoot /pool/content/webpagetest
    ServerName webpagetest.domain.com
    RewriteEngine On

    <Directory "/pool/content/webpagetest">
      AllowOverride all
      Order allow,deny
      Allow from all
    </Directory>

    ErrorLog  "|/usr/local/sbin/cronolog /var/log/httpd/%Y/%m/%d/webpagetest-errors.log"
    CustomLog "|/usr/local/sbin/cronolog /var/log/httpd/%Y/%m/%d/webpagetest-access.log" combined
  </VirtualHost>


Here's the log entry for the 404.

Code:
[05/Mar/2011:21:29:30 -0800] "POST /runtest.php HTTP/1.1" 302 - "http://webpagetest.domain.com/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13"
[05/Mar/2011:21:29:31 -0800] "GET /result/110306_2A_Z/ HTTP/1.1" 404 303 "http://webpagetest.domain.com/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13"
[05/Mar/2011:21:29:34 -0800] "GET /work/getwork.php?location=NoHo&key=mykey123&pc=WPT01&ver=261 HTTP/1.1" 200 96 "-" "urlBlast"

rewrite engine is on and I did a small test to verify that its enabled. Could there be something else that I'm missing?

Thanks for your quick response.
Find all posts by this user
Quote this message in a reply
03-06-2011, 05:51 PM
Post: #4
RE: 404 When starting a test
I figured out the problem. It was an error on my part. I copied over the www files over to the web server via samba which did not copy over the .htaccess file since it was a hidden file in Windows. Copying the .htaccess file over fixed it.

Thanks and sorry for the false alarm.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)