Running: FreeBSD 5.3 release branch mathopd-1.5p3 A very small, yet very fast HTTP server php4-cgi-4.3.9 PHP Common Gateway Interface php4-mysql-4.3.9 The mysql shared extension for php php4-pcre-4.3.9 The pcre shared extension for php
Mathopd and the php software is all installed from ports. I'm trying to troubleshoot a problem, and want to make sure my mathopd.conf file isn't causing it. Currently, if I just use html and the recommended 'dir_cgi' program, and I use a path (eg - http://fof.weller-fahy.com/isnthere ) that doesn't exist, I get a 404 message (the URL is real, you can try it). However, when using wordpress (my website software http://weller-fahy.com ) and trying the same thing, I always get the home page of my blog, never a 404. *Could* this be caused by mathopd? Or should I be looking at wordpress? What I'd like is normal 404s no matter which part I'm using, so any help towards that goal would be wonderful. If you need any more info don't hesitate to ask. Oh, and if I've made an extraordinarily stupid mistake: Please beat me over the head with it. ;] mathopd.conf #v+ # mathopd config, running under daemontools ## run under non-priveleged uids (see cgi.txt): User mathopd StayRoot On Control { ScriptUser mathopdcgi } ## secure umask: Umask 026 ## logging picked up by multilog from stderr: Log /dev/stderr ErrorLog /dev/stderr ## use localtime (not GMT) to match tai-stamp in error output: LogGMT Off ## remove Ctime from logs; use other fields as desired: LogFormat { Status ServerName RemoteAddress RemotePort Method URI QueryString UserAgent } Control { AutoIndexCommand /home/dave/src/dir_cgi/dir_cgi Types { text/plain { * } text/css { css } application/octet-stream { bin zip rar bz2 tar gz tgz exe class } application/pdf { pdf } text/html { html htm } image/gif { gif } image/jpeg { jpg } image/png { png } image/bmp { bmp } } Specials { CGI { cgi } } External { # redirect php's to php4 directly /usr/local/bin/php { php php3 php4 } } IndexNames { index.php } } Server { Address 192.168.1.5 Port 80 # for testing new things out Virtual { Host 192.168.1.5 Host fof.weller-fahy.com Control { # Access { # Deny 0/0 # Allow 192.168.1.0/24 # } Alias / Location /home/dave/wwwtest } } Virtual { Host test.weller-fahy.com Control { Alias / Location /home/dave/wordpress-broke } } Virtual { Host tigger Host tigger.weller-fahy.com Host www Host www.weller-fahy.com Control { Alias / Location http://weller-fahy.com } } Virtual { Host weller-fahy.com Control { Alias / Location /home/dave/wordpress } # public files directory Control { Alias /files Location /home/dave/documents/public } # isoqlog pages Control { Alias /isoqlog Location /usr/local/www/isoqlog } Control { Alias /doc Location /usr/share/doc/en_US.ISO8859-1/books/handbook } } } #v- Regards, -- dave [ please don't CC me ]
