Suchmaschinenfreundliche URL: script.php/param/wert/, sobald ein %2f enthalten - 404
Hallo Liste, ich möchte gerne suchmaschinenfreundliche URLs der Form script.php/parameter1/wert1/parameter2/wert2/... einsetzen, und das funktioniert auch perfekt. Sobald aber ein Wert einen Schrägstrich enthält (%2F), bekomme ich einen 404 Fehler. ZB http://mein.server.com/script.php/feld1/max geht, aber http://mein.server.com/script.php/feld1/%2fmax liefert ein 404. Jetzt habe ich mir die Doku durchgelesen, und bin dabei auf AllowEncodedSlashes gestoßen. Laut der Beschreibung müsste das genau mein Ding sein, aber es ändert nichts am Verhalten. Ist jemand von Euch schon auf dieses Problem gestoßen? Und wie habt Ihr das beseitigt. Danke und lG Georg -- Apache HTTP Server Mailing List users-de unsubscribe-Anfragen an [EMAIL PROTECTED] sonstige Anfragen an [EMAIL PROTECTED] --
Re: [EMAIL PROTECTED] HTTP AUTH
Hi Theres no way of passing info from a form to set the variables 'HTTP_AUTH_USER' ad HTTP_AUTH_USER but I have found a way around it but never put it into practice yet. You can still use your existing form to login and create a session variable as their user name eg $_SESSION['username'] = 'user1' Then, lets say you have a folder www.example.com/user1 which you want to restrict access to 'user1' only, in the folder user1, create a .htaccess file with the following info AddHandlerverifyuser .gif AddHandlerverify .jpg // add extra lines for other file types etc Actionverify /login/verify.user1.php //this is relative to the root of your website ie www.yousite.com/login/verify.user1.php Then each time the user accesses a .jpg, .gif file etc, it will first go through the verify.user1.php script. verify.user1.php needs to be written as follows ?phpif ($_SESSION['username'] == user1){$file = $_SERVER[PATH_TRANSLATED]; readfile($file); }else{echo 'invalid username'} ? Basically this will display the original file they were trying to access if there username is user1 otherwise it will display the message invalid username. For other user folders eg www.yoursite.com/user2, you will have to again add a htaccess file in the folder and use the add handler as above to link to a script like verify.user2.php Hope this helps Regards, Chris.
[EMAIL PROTECTED] apache modules development,hash tables,pools and threads
Hi list, My question is about modules programming. I have an apache with mpm worker, every process makes a number of threads. Can I use apr_hash interface, inside a module in a process pool lifetime with mpm worker model? Can I insert,read and delete data in hash tables from any request that triguer my module? thanks,
[EMAIL PROTECTED] perl bypass apache basic authentication
Hi guys, My httpd version is: # rpm -qa| grep httpd httpd-manual-2.0.54-10.2 httpd-2.0.54-10.2 Basic auth works great if the web client is IE, Firefox, etc but when the pages, protected by basic auth, can be printed by a simple perl script. I am not sure if this is expected or not. Basic auth is configured in httpd.conf as follows (there is no .htaccess file) begin VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/share/awstats/wwwroot ServerName awstats.mydomain.com ErrorLog logs/error_log CustomLog logs/access_log combined Directory /usr/share/awstats/wwwroot AuthType Basic AuthName Operator Login AuthUserFile /var/www/passwd/passwords Require valid-user /Directory /VirtualHost end # With a perl script using LWP::UserAgent, the response of get(url) function just prints the basic auth protected web page without suppling username and password. Please advice. Regards. __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Delete Blank Lines In A Text File
Quoting Christopher Deeley [EMAIL PROTECTED]: Does anyone know how to use PHP to delete blank lines in a text file. I use a text file to store usernames and passwords but with adding and deleting users, blank lines appear which returns an undefined offset error when the 'verify user script' tries to read each line of the text file. Here's a short script: ?php $input = file('your_input_file.here'); // read file into the array $input $fp = fopen('your_output_file.here'); foreach ($input as $line) if (trim($line) != '') fwrite($line); // if the line isn't blank write it out fclose($fp); ? Ken - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Delete Blank Lines In A Text File
That's nice but it doesn't fix the blank lines it just skips them in the file parse. I think he wants to clean the file. If the file gets big, he could take a performance hit skipping multiple lines. Thanx Aaron N Wagner Monitoring Systems and Network Tools CCO-Command Center Operations 804.515.6298 -Original Message- From: Ken Robinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005 4:54 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Delete Blank Lines In A Text File Quoting Christopher Deeley [EMAIL PROTECTED]: Does anyone know how to use PHP to delete blank lines in a text file. I use a text file to store usernames and passwords but with adding and deleting users, blank lines appear which returns an undefined offset error when the 'verify user script' tries to read each line of the text file. Here's a short script: ?php $input = file('your_input_file.here'); // read file into the array $input $fp = fopen('your_output_file.here'); foreach ($input as $line) if (trim($line) != '') fwrite($line); // if the line isn't blank write it out fclose($fp); ? Ken - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] All DNS requests go only to the parent domain
After the server hard disk crashed I have re-installed Apache 1.3, but can only get to the parent domain: http://www.CascadeWebDesign.com but not the 2nd, nor other domains. http://www.KohalaSanctuary.com dnsReports nothing wrong with http://www.KohalaSanctuary.com *** In virtual_host_global.conf I see Listen *:80 Listen 216.162. xxx.xxx:80 NameVirtualHost 216.162. xxx.xxx:80 *** Here's db.kohalasanctuary.com, which is referenced by named.conf $TTL 86400 kohalasanctuary.com.IN SOA cascade.suddentechnology.com. baiss.cascadewebdesign.com. ( 2005121914 ; serial 3h ; refresh 1h ; retry 1w ; expiry 1h ) ; minimum ; ; Name servers ; kohalasanctuary.com.IN NS cascade.suddentechnology.com. kohalasanctuary.com.IN NS treehouse.suddentechnology.com. ; ; Addresses for the canonical names ; kohalasanctuary.com. IN A 216.162.215.196 www.kohalasanctuary.com. IN A 216.162.215.196 ftp.kohalasanctuary.com. IN A 216.162.215.196 *** Here's 0003_216.162.215.196_80_kohalasanctuary.com.conf, which is what the Apache has done with db.kohalasanctuary.com, correct... VirtualHost 216.162.215.196:80 ServerName kohalasanctuary.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /Library/WebServer/Documents/KohalaSanctuary/ DirectoryIndex index.html CustomLog /var/log/httpd/access_log %{PC-Remote-Addr}i %l %u %t \%r\ %s %b ErrorLog /var/log/httpd/error_log ErrorDocument 404 /error.html IfModule mod_ssl.c SSLEngine Off SSLLog /var/log/httpd/ssl_engine_log SSLCertificateFile /etc/certificates/Default.crt SSLCertificateKeyFile /etc/certificates/Default.key SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:! SSLv2:+EXP:+eNULL /IfModule IfModule mod_dav.c DAVLockDB /var/run/davlocks/.davlockany_80_default DAVMinTimeout 600 /IfModule Directory /Library/WebServer/Documents/KohalaSanctuary/ Options All -Indexes -ExecCGI -Includes +MultiViews IfModule mod_dav.c DAV Off /IfModule AllowOverride None /Directory IfModule mod_rewrite.c RewriteEngine On RewriteCond %{REQUEST_METHOD} ^TRACE RewriteRule .* - [F] /IfModule IfModule mod_alias.c /IfModule LogLevel warn ServerAlias * /VirtualHost Thanks much, Baiss Eric Magnusson http://www.CascadeWebDesign.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Delete Blank Lines In A Text File
Quoting Wagner, Aaron [EMAIL PROTECTED]: That's nice but it doesn't fix the blank lines it just skips them in the file parse. I think he wants to clean the file. If the file gets big, he could take a performance hit skipping multiple lines. If you ran the script you would see that the output file doesn't have the blank lines. You can easily make the output file the same as the input file, so you end up with a cleaned file. I wrote tested the script before I posted it. Ken - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Unable to redirect ( using mod_rewrite)
Hi Folks, I want to do time based rewrite in order to display a Downtime page during DATABASE maintenance. Htpd.conf has followingsettings RewriteEngine onRewriteLog logs/rewriteLog.logRewriteLogLevel 9 RewriteCond %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} 21700RewriteCond %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} 21759RewriteRule /.* http://webstite/downtime\.html [R,L]RewriteRule ^/$ /confluence/ [R] It means on everySautrday between 2am-3am, any url pointing to our website should get directed Downtime page. In all other cases, next Rewriterule should work! But whenever I tried to test it; Firefox always fails with following error : The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies. Here is Rewrite_Log: 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (2) init rewrite engine with requested uri /confluence/display/WIKI/Home171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (3) applying pattern '/.*' to uri '/confluence/display/WIKI/Home'171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (4) RewriteCond: input='21710' pattern='21700' = matched171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (4) RewriteCond: input='21710' pattern='21759' = matched171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (2) rewrite /confluence/display/WIKI/Home - http://wiki-dev/downtime.html171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (2) explicitly forcing redirect with http://wiki-dev/downtime.html171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (1) escaping http://wiki-dev/downtime.html for redirect171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (1) redirect to http://wiki-dev.com/downtime.html [REDIRECT/302]171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev.cisco.com/sid#9968800][rid#9a508f0/initial] (2) init rewrite engine with requested uri /downtime.html I'm not sure what's wrong going on here... Can anybody please help, thanks, Rajendra
Re: [EMAIL PROTECTED] Delete Blank Lines In A Text File
Try: $string = file_get_contents( test.text ); $string = file_put_contents( test.text, preg_replace( /(\r\n|\r|\n)(\s)*(\r\n|\r|\n)/, $1, $string ) ); Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Dec 27, 2005, at 3:16 PM, Christopher Deeley wrote: Does anyone know how to use PHP to delete blank lines in a text file. I use a text file to store usernames and passwords but with adding and deleting users, blank lines appear which returns an undefined offset error when the 'verify user script' tries to read each line of the text file. Thanks - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Delete Blank Lines In A Text File
k, I didn't see you filehandle on the fwrite. I didn't know that you could write to the same file your reading? Interesting Thanx Aaron N Wagner Monitoring Systems and Network Tools CCO-Command Center Operations 804.515.6298 -Original Message- From: Ken Robinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005 5:05 PM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] Delete Blank Lines In A Text File Quoting Wagner, Aaron [EMAIL PROTECTED]: That's nice but it doesn't fix the blank lines it just skips them in the file parse. I think he wants to clean the file. If the file gets big, he could take a performance hit skipping multiple lines. If you ran the script you would see that the output file doesn't have the blank lines. You can easily make the output file the same as the input file, so you end up with a cleaned file. I wrote tested the script before I posted it. Ken - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [EMAIL PROTECTED] Unable to redirect ( using mod_rewrite)
Hi Rajendra, there is the line RewriteCond %{REQUEST_URI} !^downtime\.html$ missing, because if you can to redirect all URL's to downtime.html, but you have to exclude the downtime.html itself. If not, this will result in an infinte loop. So your new Block will be RewriteCond %{REQUEST_URI} !^downtime\.html$ RewriteCond %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} 21700 RewriteCond %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} 21759 RewriteRule /.* http://webstite/downtime\.html http://webstite/downtime\.html [R,L] RewriteRule ^/$ /confluence/ [R] bye Oliver -Ursprüngliche Nachricht- Von: Rajendra Kadam -X (rakadam - eTouch Systems at Cisco) [mailto:[EMAIL PROTECTED] Gesendet: Di 27.12.2005 23:20 An: Apache-HTTPD Users Mailing list Betreff: [EMAIL PROTECTED] Unable to redirect ( using mod_rewrite) Hi Folks, I want to do time based rewrite in order to display a Downtime page during DATABASE maintenance. Htpd.conf has following settings RewriteEngine on RewriteLog logs/rewriteLog.log RewriteLogLevel 9 RewriteCond %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} 21700 RewriteCond %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} 21759 RewriteRule /.* http://webstite/downtime\.html http://webstite/downtime\.html [R,L] RewriteRule ^/$ /confluence/ [R] It means on every Sautrday between 2am-3am, any url pointing to our website should get directed Downtime page. In all other cases, next Rewrite rule should work! But whenever I tried to test it; Firefox always fails with following error : The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies. Here is Rewrite_Log: 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (2) init rewrite engine with requested uri /confluence/display/WIKI/Home 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (3) applying pattern '/.*' to uri '/confluence/display/WIKI/Home' 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (4) RewriteCond: input='21710' pattern='21700' = matched 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (4) RewriteCond: input='21710' pattern='21759' = matched 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (2) rewrite /confluence/display/WIKI/Home - http://wiki-dev/downtime.html 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (2) explicitly forcing redirect with http://wiki-dev/downtime.html 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (1) escaping http://wiki-dev/downtime.html for redirect 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (1) redirect to http://wiki-dev.com/downtime.html [REDIRECT/302] 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev.cisco.com/sid#9968800][rid#9a508f0/initial] (2) init rewrite engine with requested uri /downtime.html I'm not sure what's wrong going on here... Can anybody please help, thanks, Rajendra winmail.dat- The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] problems with the setup of php on winXP
#1 Did you open the Apache error.log file? Are you sure there is nothing there? #2 Has the PHP been installed into C:\PHP\ ? This is what I have for v5 set on my Apache: LoadModule php5_module c://php5apache2.dll AddType application/x-httpd-php .php PHPIniDir C:*/php Directory /path/to/directory Options +Indexes /Directory On 12/26/05, Manuel Grau Aracil [EMAIL PROTECTED] wrote: Hi! I'm having problems configuring php 4.4.1. on apache 2.0.55. as a module over windows xp home os. I've followed the instructions given by install.txt from the php home folder. I have added this lines to httpd.conf: LoadModule php4_module c:/php/sapi/php4apache2.dll AddType application/x-httpd-php .php PHPIniDir C:/php I can't start the server. I have opened the apache's log but there is no information to know what is happening. Can somebody help me? -- Live Long and Prosper, by Andrey Kuznetsov aka Death Owl - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Unable to redirect ( using mod_rewrite)
Hi Oliver, Great! Thanks for pointing the problem. I have added line as per your suggestion ( with slight change : addition of slash at start! ) as follows : RewriteCond %{REQUEST_URI} !^/downtime\.html$ And it's working Cheers, Rajendra -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005 2:52 PM To: users@httpd.apache.org Subject: AW: [EMAIL PROTECTED] Unable to redirect ( using mod_rewrite) Hi Rajendra, there is the line RewriteCond %{REQUEST_URI} !^downtime\.html$ missing, because if you can to redirect all URL's to downtime.html, but you have to exclude the downtime.html itself. If not, this will result in an infinte loop. So your new Block will be RewriteCond %{REQUEST_URI} !^downtime\.html$ RewriteCond %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} 21700 RewriteCond %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} 21759 RewriteRule /.* http://webstite/downtime\.html http://webstite/downtime\.html [R,L] RewriteRule ^/$ /confluence/ [R] bye Oliver -Ursprüngliche Nachricht- Von: Rajendra Kadam -X (rakadam - eTouch Systems at Cisco) [mailto:[EMAIL PROTECTED] Gesendet: Di 27.12.2005 23:20 An: Apache-HTTPD Users Mailing list Betreff: [EMAIL PROTECTED] Unable to redirect ( using mod_rewrite) Hi Folks, I want to do time based rewrite in order to display a Downtime page during DATABASE maintenance. Htpd.conf has following settings RewriteEngine on RewriteLog logs/rewriteLog.log RewriteLogLevel 9 RewriteCond %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} 21700 RewriteCond %{TIME_WDAY}%{TIME_HOUR}%{TIME_MIN} 21759 RewriteRule /.* http://webstite/downtime\.html http://webstite/downtime\.html [R,L] RewriteRule ^/$ /confluence/ [R] It means on every Sautrday between 2am-3am, any url pointing to our website should get directed Downtime page. In all other cases, next Rewrite rule should work! But whenever I tried to test it; Firefox always fails with following error : The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies. Here is Rewrite_Log: 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (2) init rewrite engine with requested uri /confluence/display/WIKI/Home 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (3) applying pattern '/.*' to uri '/confluence/display/WIKI/Home' 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (4) RewriteCond: input='21710' pattern='21700' = matched 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (4) RewriteCond: input='21710' pattern='21759' = matched 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (2) rewrite /confluence/display/WIKI/Home - http://wiki-dev/downtime.html 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (2) explicitly forcing redirect with http://wiki-dev/downtime.html 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (1) escaping http://wiki-dev/downtime.html for redirect 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev/sid#9968800][rid#9a508f0/initial] (1) redirect to http://wiki-dev.com/downtime.html [REDIRECT/302] 171.71.57.50 - - [27/Dec/2005:17:10:50 --0500] [wiki-dev.cisco.com/sid#9968800][rid#9a508f0/initial] (2) init rewrite engine with requested uri /downtime.html I'm not sure what's wrong going on here... Can anybody please help, thanks, Rajendra - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache quits working for no apparent reason under WinXP
I run a server, every few days or sometimes hours it shutsdown by itself, now I mean not shutdown as a stop function. The service still runs, the server says it is running, nothing is frozen, but the server gives me a 404 error. Once I stop and start the server and access the same page it works fine, and no 404 problem in sight, oh and also I believe the server stops logging after it stops delivering content. Here is the error log file: [client 66.249.72.200] script 'C:/Program Files/Apache Group/Apache2/SERVER_FILES/emailer/form2.php' not found or unable to stat [Tue Dec 27 05:47:39 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:23:02 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/06.12.05 [Tue Dec 27 06:23:02 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:23:06 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/v01issue01.html [Tue Dec 27 06:23:06 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:23:11 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/06.12.05 [Tue Dec 27 06:23:11 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:11 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/04.23.05/UserSelections.txt [Tue Dec 27 06:40:11 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:13 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/news/vol01issue00.html [Tue Dec 27 06:40:13 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:14 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/05.02.05/UserSelections.txt [Tue Dec 27 06:40:14 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:16 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/04.30.05/UserSelections.txt [Tue Dec 27 06:40:16 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:17 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/05.23.05/UserSelections.txt [Tue Dec 27 06:40:17 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:18 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/06.06.05/UserSelections.txt [Tue Dec 27 06:40:18 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:19 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/05.13.05/UserSelections.txt [Tue Dec 27 06:40:19 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:20 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/05.03.05/UserSelections.txt [Tue Dec 27 06:40:20 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:21 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/04.20.05/UserSelections.txt [Tue Dec 27 06:40:21 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:22 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/04.21.05/UserSelections.txt [Tue Dec 27 06:40:22 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:40:23 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/05.21.05/UserSelections.txt [Tue Dec 27 06:40:23 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/@exp_errordir@ [Tue Dec 27 06:57:55 2005] [error] [client 66.249.72.200] File does not exist: C:/Program Files/Apache Group/Apache2/SERVER_FILES/gallery/06.12.05 [Tue Dec 27 06:57:55 2005] [error] [client
[EMAIL PROTECTED] Detecting Javascript via Apache 2
Hi all. Is it possible for apache 2.0 to detect if a browser has javascript enabled when a page is requested, and then passing this value to PHP? This would allow me to serve different page content, depending on whether the user's browser has javascript enabled or not. Regard Keith Roberts - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Detecting Javascript via Apache 2
You probably want to assume it doesn't then if it does set a cookie or establish it via link or by using javascript to tell php it does and save it in the session. Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Dec 27, 2005, at 5:49 PM, [EMAIL PROTECTED] wrote: Hi all. Is it possible for apache 2.0 to detect if a browser has javascript enabled when a page is requested, and then passing this value to PHP? This would allow me to serve different page content, depending on whether the user's browser has javascript enabled or not. Regard Keith Roberts - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] not showing .jpg as a list
Hallo, I have upgrades from SuSE old to SuSE 10.0 with Apache2. My Apache2-server does not show the list of images in the directory 'images'. The old version did show all files, if the 'index.html' was not installed. What do I have to change/install to have the 'images jpg' readable again? Thanks for any idea and help. Christoph -- TEL: 0049 (0)5193 4021 FAX: 0049 (0)5193 4020 W HEINO LUENZMUEHLEN 1 29640 SCHNEVERDINGEN - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] non-rpm, 2.2x autonomous server binary config for RH9?
Summary: I want a non-rpm (ie, something like a .tar.gz collection), autonomously-running (ie: includes all the apr-utils and everything else I need to run a basic Apache server) binary httpd collection for httpd rev 2.2x that I can run in a utility manner (ie, a secondary httpd server mapped to alternative ports like 4343 or 8080) in addition to an existing httpd server I have running on my machine. Details: I'm trying to download a 4.8GB file from my server, and my sftp connection for some reason is running at 1/5 the speed of my https connection. Problem is that my 2.0.52 httpd does not read greater-then-2GB files, and therefore I can't use https to download said file (securely, or in any other fashion--and I need to do this transfer securely). I'd like to run a 2.2x httpd server (on alternative ports) in addition to my 2.0.52 httpd server so I can get around this isssue. Thing is, I don't want to have rebuild 2.2x from source, and I don't want to load an rpm (and have said rpm overwrite my existing, 2.0.52 httpd). Any options? Can I get a .tar.gz binary set (for my Redhat 9 machine) that I can extra, configure, and run separate on ports like 4343 (as per the tailored httpd.conf)? Where can I get something like this? I have yet to find anything. Thanks for any help, -Matt - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Form Login Script
Try: ?php session_start(); function response( $text ) { echo $text; return; } $bad_user = Invalid User Name; $bad_pass = Invalid Password; $good_log = Valid User. Login Successful; $usr = $_POST['username']; $pass = $_POST['password']; $valid_match = /([a-z0-9-_])+/i; if( !preg_match( $valid_match, $usr ) ) { return response( $bad_user ); } elseif( !preg_match( $valid_match, $pass ) ) { return response( $bad_pass ); } $users = file_get_contents( users.txt ); $results = array(); $valid_match = /($usr):($pass)?/; if( preg_match( $valid_match, $users, $results ) ) { if( !$results[ 2 ] ) { return response( $bad_pass ); } else { return response( $good_log ); } } else { return response( $bad_user ); } ? Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Dec 27, 2005, at 6:55 PM, Christopher Deeley wrote: I am trying to use the following script to verify my users against a text file where each line is in the format username:password. This is my script below. It worked fine until I started adding more users to the text file and it wouldn't recognise them. It will only show as a valid user if it matches the last entry in the text file. ?PHP session_start(); $usr = $_POST['username']; $pass = $_POST['password']; $filename = 'users.txt'; $fp = fopen( $filename, 'r' ); $file_contents = fread( $fp, filesize( $filename ) ); fclose( $fp ); $lines = explode ( \n, $file_contents ); foreach ( $lines as $line ){ list( $username, $password ) = explode( ':', $line ); } if($username !== $usr){ echo 'invalid username'; die; } if ( ( $usr == $username ) ( $pass == $password ) ) { echo 'Valid User. Login Successful'; } else{ echo 'Invalid Password'; } ? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Delete Blank Lines In A Text File
At 05:35 PM 12/27/2005, Wagner, Aaron wrote: k, I didn't see you filehandle on the fwrite. I didn't know that you could write to the same file your reading? Interesting Actually, I use the file() function to read the whole file into an array, so the file isn't open when you do the fopen() of the output file. That's how you can write to the same filename, at least on OS's that don't do file versions. On OS's with file versions, like VMS, opening the same file name just creates a new version and the old file remains intact. Ken - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Detecting Javascript via Apache 2
From: [EMAIL PROTECTED] Hi all. Is it possible for apache 2.0 to detect if a browser has javascript enabled when a page is requested, and then passing this value to PHP? This would allow me to serve different page content, depending on whether the user's browser has javascript enabled or not. Regard It is not relevant if a page has or not Javascript enabled. If you want to create pages that work in every browser, read and follow World Wide Web's recommendations at www.w3c.org. What does it mean if Javascript is enabled? It means that the browser has it enabled, but you won't know if the user is able to use it. Maybe the computer she uses doesn't have a mouse or the user is blind and should use only the keyboard, so the first important thing is to create the page that follow W3C's rules. If you want to see if the browser has Javascript enabled, you can create a Javascript code that GET's a page from the web server. If the page is gotten, then the browser supports Javascript and if it is not, it means that the code was not working so it might be disabled. Teddy - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]