Re: [EMAIL PROTECTED] Running bash scripts from a browser through Apache
enable cgi - that's all there is to it. P Karthick wrote: Hi All, Is there any way to run Bash shell scripts from a browser passed through Apache. This is exactly like executing a perl script through mod_perl module. E.g. http://myhost/dir1/myscript.sh If we hit the link,the script should be executed and I have written the script in a way that it outputs a HTML page, that should be displayed in the browser. Thanks and Regards, Karthick P Thanks and Regards, Karthick P - 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] Re: FW: Apache Permission Error
Ming Tang wrote: Hi there, I intalled Apache 2.1.4 recently using ports 2.1 is development, please change to 2.2 to see if this problem still occurs. Joost - 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] FW: Apache Permission Error
[EMAIL PROTECTED] wrote: Victor, Thanks for the reply. Attached here is the configuration file. [Thu May 18 02:07:37 2006] [error] [client 74.136.xxx.xxx] client denied by server configuration: /usr/www/homepage/ You have a Directory / Deny all and not a Directory /usr/www/homepage Allow all. Joost - 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] POST encoding
There must be something more to this, because there is no reason why the user agent should encode differently depending on the server to which the request is sent. At the time the request is sent, the browser does not even know what kind of server it is sending the request to, and reverse proxies are completely transparent to the browser. It is only when it receives the response that it knows what kind of server handled it (Server header), and that would be IIS anyway (unless the response was served by an Apache cache). Content negociation is end-to-end - not hop-by-hop. Cdt -ascs From: Computa Computa [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 12:36 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] POST encoding Hi I use Apache httpd and mod_rewrite as a reverse proxy between an IIS and end-users. When filling forms, strings sent from the browser to the proxy via a POST transaction are not encoded the same way compared to the strings sent directly from the browser to IIS. Here is an example bellow. As one can see, the string téléphone is encoded t%E9l%E9phone when sent to IIS and t%C3%A9l%C3%A9phone when sent to the Apache proxy. To my knowlegde, %E9 is a normal UTF-8 encoding for é, but I don't understand the encoding used by Apache nor does it works well with the Web application (it displays strange symbols). I thought it might be a content negociation problem and I set the parameters DefaultLanguage fr and AddDefaultCharset Off. I also have all the AddLanguage and AddCharset. Anyone has an idea of what could be wrong ? Thanks a lot, Matthieu - From Browser to IIS - Hypertext Transfer Protocol POST /save.asp HTTP/1.1\r\n Request Method: POST Request URI: /save.asp Request Version: HTTP/1.1 Host: MyIisHostname\r\n User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3\r\n Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3\r\n Accept-Encoding: gzip,deflate\r\n Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n Keep-Alive: 300\r\n Connection: keep-alive\r\n Referer: http://MyIisHostname/edit.asp\r\n http://MyIisHostname/edit.asp%5Cr%5Cn Cookie: ASPSESSIONIDSQDCDQTD=OFEFAOMAEJGINAJBFPAHDGOD\r\n Content-Type: application/x-www-form-urlencoded\r\n Content-Length: 41\r\n \r\n Line-based text data: application/x-www-form-urlencoded MyVar=t%E9l%E9phone - From Browser to Apache reverse proxy - Hypertext Transfer Protocol POST /save.asp HTTP/1.1\r\n Request Method: POST Request URI: /save.asp Request Version: HTTP/1.1 Host: 10.xx.yy.iis\r\n User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3\r\n Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3\r\n Accept-Encoding: gzip,deflate\r\n Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n Referer: http://10.xx.yy.proxy/edit.asp\r\n http://10.xx.yy.proxy/edit.asp%5Cr%5Cn Cookie: ASPSESSIONIDSQDCDQTD=NFEFAOMACGFIOFAAMIDEJLNH\r\n Content-Type: application/x-www-form-urlencoded\r\n Max-Forwards: 10\r\n X-Forwarded-For: 10.xx.yy.browser\r\n X-Forwarded-Host: 10.xx.yy.proxy\r\n X-Forwarded-Server: ProxyHostname\r\n Content-Length: 53\r\n \r\n Line-based text data: application/x-www-form-urlencoded MyVar=t%C3%A9l%C3%A9phone - 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] mod_rewrite: RewriteRule to strip index.html?
Although you do not specify which version of Apache you are using, I assume that you are using 2.0.55 or newer. AFAIK this problem does not exist in Apache 2.0.54 (or at least I have not experienced it) with which I use rewrite rules quite extensively. Therefore I think that you could replace the 2.0.55 mod_rewrite with mod_rewrite from 2.0.54. Looking at the 2.0 change log, the only change affecting mod_rewrite from 2.0.54 to 2.0.55 is *) mod_rewrite: use buffered I/O to improve performance with large RewriteMap txt: files. [Greg Ames] but you never know... Its worth a try. -ascs -Original Message- From: Ian Brandt [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 6:52 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] mod_rewrite: RewriteRule to strip index.html? Robert Ionescu wrote: Ian Brandt wrote: Looked good, until the add path info postfix part. That's a bug. http://issues.apache.org/bugzilla/show_bug.cgi?id=38642 Use the L-Flag to stop immediately (there will be a redirect processing) or place the rules into httpd.conf (per-server context). Thanks for the pointer! I've appended my case to the bug. ~Ian - 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]
Re: [EMAIL PROTECTED] httpd: fatal: hardware capability unsupported
On Tue, May 23, 2006 at 12:11:34PM -0300, Felipe Tocchetto wrote: httpd ./configure --prefix=/usr/local/httpd-2.0.58 --enable-ssl --with-ssl=/usr/local/openssl-0.9.8b ... bash-3.00# ./httpd -k start ld.so.1: httpd: fatal: hardware capability unsupported: 0x1000 [ SSE2 ] Killed It's possible this is due to use of assembler in OpenSSL, if you build httpd without mod_ssl enabled does it work? If so you can then try and narrow the problem down; pass noasm to the OpenSSL Configure script, check you are using the right Configure target to build OpenSSL; mail openssl-users@openssl.org for more help. joe - 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] Re : [EMAIL PROTECTED] POST encoding
I thank you for this first answer. Actually, there were prior connections between the browser and the proxy or webserver. To an initial request, the webserver answers : HTTP/1.1 200 OK\r\n Request Version: HTTP/1.1 Response Code: 200 Date: Mon, 22 May 2006 14:22:06 GMT\r\n Server: Microsoft-IIS/6.0\r\n Content-Length: 249\r\n Content-Type: text/html\r\n Set-Cookie: ASPSESSIONIDQSACDQSC=IJFBEEOAADNHGKOIPFHDLMFE; path=/\r\n Cache-control: private\r\nand the proxy answers : HTTP/1.1 200 OK\r\n Request Version: HTTP/1.1 Response Code: 200 Date: Mon, 22 May 2006 14:22:26 GMT\r\n Server: Microsoft-IIS/6.0\r\n Content-Type: text/html;charset=utf-8\r\n Set-Cookie: ASPSESSIONIDQSACDQSC=HJFBEEOAJNDDKDJEACOBCMML; path=/\r\n Cache-control: private\r\n Transfer-Encoding: chunked\r\n Content-Language: fr\r\n \r\n HTTP chunked responseAs you can see, advertisement differs between the 2 : among others, Apache added "charset=utf-8\r\n" in its Content-Type.The beavior is the same both with Mozilla (win and linux) and IE. There is no caching an Apache...I just can't see where is the solution to this problem of encoding. There's clearly a difference in the content with and without the Apache reverse proxy but I don't know what to change in my configuration !Matthieu- Message d'origine De : Axel-Stéphane SMORGRAV [EMAIL PROTECTED]À : users@httpd.apache.org; Computa Computa [EMAIL PROTECTED]Envoyé le : Mercredi, 24 Mai 2006, 11h22mn 32sObjet: RE: [EMAIL PROTECTED] POST encodingThere must be something more to this, because there is no reason why the user agent should encode differently depending on the server to which the request is sent. At the time the request is sent, the browser does not even know what kind of server it is sending the request to, and reverse proxies are completely transparent to the browser. It is only when it receives the response that it knows what kind of server handled it (Server header), and that would be IIS anyway (unless the response was served by an Apache cache). Content negociation is end-to-end - not hop-by-hop. Cdt-ascs From: Computa Computa [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 12:36 PMTo: users@httpd.apache.orgSubject: [EMAIL PROTECTED] POST encodingHiI use Apache httpd and mod_rewrite as a reverse proxy between an IIS and end-users. When filling forms, strings sent from the browser to the proxy via a POST transaction are not encoded the same way compared to the strings sent directly from the browser to IIS. Here is an example bellow. As one can see, the string "téléphone" is encoded "t%E9l%E9phone" when sent to IIS and "t%C3%A9l%C3%A9phone" when sent to the Apache proxy. To my knowlegde, %E9 is a normal UTF-8 encoding for é, but I don't understand the encoding used by Apache nor does it works well with the Web application (it displays strange symbols). I thought it might be a content negociation problem and I set the parameters "DefaultLanguage fr" and "AddDefaultCharset Off". I also have all the AddLanguage and AddCharset. Anyone has an idea of what could be wrong ?Thanks a lot,Matthieu- From Browser to IIS -Hypertext Transfer ProtocolPOST /save.asp HTTP/1.1\r\nRequest Method: POSTRequest URI: /save.aspRequest Version: HTTP/1.1Host: MyIisHostname\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3\r\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nConnection: keep-alive\r\nReferer: http://MyIisHostname/edit.asp\r\n http://MyIisHostname/edit.asp%5Cr%5Cn Cookie: ASPSESSIONIDSQDCDQTD=OFEFAOMAEJGINAJBFPAHDGOD\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 41\r\n\r\nLine-based text data: application/x-www-form-urlencodedMyVar=t%E9l%E9phone- From Browser to Apache reverse proxy -Hypertext Transfer ProtocolPOST /save.asp HTTP/1.1\r\nRequest Method: POSTRequest URI: /save.aspRequest Version: HTTP/1.1Host: 10.xx.yy.iis\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3\r\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nReferer: http://10.xx.yy.proxy/edit.asp\r\n http://10.xx.yy.proxy/edit.asp%5Cr%5Cn Cookie: ASPSESSIONIDSQDCDQTD=NFEFAOMACGFIOFAAMIDEJLNH\r\nContent-Type: application/x-www-form-urlencoded\r\nMax-Forwards: 10\r\nX-Forwarded-For: 10.xx.yy.browser\r\nX-Forwarded-Host: 10.xx.yy.proxy\r\nX-Forwarded-Server: ProxyHostname\r\nContent-Length: 53\r\n\r\nLine-based text data:
[EMAIL PROTECTED] Using regular expressions in Directory configuration
I read in the apache manual that Directory supports regular expressions to match which directory is being used. I'm wondering if it is possible to hack this somehow to set the php_admin_value open_basedir configuration to chroot users into a regular expression matched directory? Ie, if you have set up /home/web/foobar.com/username and the user accesses http://foobar.com/username/subdirectory. I'd then like to match the username and set the open_basedir to /home/web/foobar.com/username. In this case, all users have 1st level directory names under /home/web/foobar.com Is this possible at all? Mattias Segerdahl EMS IT- Säkerhetslösningar Påskbergatan 10, 41268 Göteborg Telephone: +46-31-7034120 Cellular: +46-735-867626 Fax: +46-735-867626 Vi ber dig lägga märke till att detta e-postmeddelande kan innehålla konfidentiell information. Om du felaktigt blivit mottagare av detta meddelande, ber vi dig informera avsändaren om felet genom att använda svar-funktionen. Vi ber dig också att radera e-postmeddelandet utan att skicka det vidare eller kopiera det. Trots att vi intygar att e-postmeddelandet och eventuella bilagor inte innehåller virus och andra fel som kan påverka datorn eller IT-systemet där det mottages och läses, öppnas det på mottagarens eget ansvar. Vi tar inte på oss något ansvar för förlust eller skada, som har uppstått i samband med att e-postmeddelandet mottagits och använts. Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. - 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] FW: Apache Permission Error
Joost, I add an entry for Directory /usr/www/homepage. It works now. Thanks for the timely help. I really appreciate it. - Ming -Original Message- From: Joost de Heer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 2:17 AM To: [EMAIL PROTECTED] Cc: Victor Trac; users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] FW: Apache Permission Error [EMAIL PROTECTED] wrote: Victor, Thanks for the reply. Attached here is the configuration file. [Thu May 18 02:07:37 2006] [error] [client 74.136.xxx.xxx] client denied by server configuration: /usr/www/homepage/ You have a Directory / Deny all and not a Directory /usr/www/homepage Allow all. Joost - 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] Problem with Satisfy Directive
I am trying to let bots crawl my site with out requiring to authentication but it doesn't work for some reason. It doesn't even enforce the Basic auth if the user-agent doesn't match "Googlebot" even though I have Satisfy Any !! BrowserMatchNoCase Robot is_robot Location /content/* AuthUserFile /home/conf/htpasswords AuthName "Restricted Access" AuthType Basic Require valid-user Allow from env=is_robot Satisfy Any /Location thanks for any help Praveen - The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Problem with Satisfy Directive
-Original Message- From: Praveen Alavilli [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 3:13 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Problem with Satisfy Directive I am trying to let bots crawl my site with out requiring to authentication but it doesn't work for some reason. Never say doesn't work... what exactly happens: - does it allow access when you don't want it to? - does it not allow access when you want it to? Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. It doesn't even enforce the Basic auth if the user-agent doesn't match Googlebot even though I have Satisfy Any !! BrowserMatchNoCase Robot is_robot Location /content/* AuthUserFile /home/conf/htpasswords AuthName Restricted Access AuthType Basic Require valid-user Allow from env=is_robot Satisfy Any /Location thanks for any help Praveen -- --- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. - 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] Problem with Satisfy Directive
Sorry for not being clear - it doesn't enforce either 'Require valid-user" or "Allow from env=is_robot" rule even though I added "Satisfy Any" - it's basically allowing access to the url in /content/* for everyone. thx Praveen [EMAIL PROTECTED] wrote: -Original Message- From: Praveen Alavilli [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 24, 2006 3:13 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Problem with Satisfy Directive I am trying to let bots crawl my site with out requiring to authentication but it doesn't work for some reason. Never say "doesn't work"... what exactly happens: - does it allow access when you don't want it to? - does it not allow access when you want it to? Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. It doesn't even enforce the Basic auth if the user-agent doesn't match "Googlebot" even though I have Satisfy Any !! BrowserMatchNoCase Robot is_robot Location /content/* AuthUserFile /home/conf/htpasswords AuthName "Restricted Access" AuthType Basic Require valid-user Allow from env=is_robot Satisfy Any /Location thanks for any help Praveen -- --- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. - 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 for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Problem displaying French characters
Hi, I am using what appears to be Apache 2.0.52 (the rpm package states it is httpd-2.0.52-22) on a CentOS 4 Linux system. I am trying to make some documentation available on our intranet so that it is accessible to our French subsidiary but I noticed that any accented characters in the text are appearing as strange characters. I am assuming this is something to do with fonts but have been unable to find a solution. My httpd.conf file is pretty much unchanged from the default installation other than being edited to change the server name and enable Server Side Includes. If I load the HTML into my browser directly from my local disk it looks fine but as soon as it is served via the web server I see the problem. The document I am working with is the French version of a Red Hat installation guide. You can see this on the Red Hat site as it is supposed to appear at: http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/fr/x8664-multi-install-guide/ but as soon as I put that file on my web server all those nice accented characters appear as strange backwards commas. Any help would be much appreciated. Thanks Neil - 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] Problem with Satisfy Directive
-Original Message- From: Praveen Alavilli [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 4:01 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Problem with Satisfy Directive Sorry for not being clear - it doesn't enforce either 'Require valid-user or Allow from env=is_robot rule even though I added Satisfy Any - it's basically allowing access to the url in /content/* for everyone. So was basic auth ever working? Remove all the clever stuff and try to get basic auth working in the Location, ie: Location /content/* AuthUserFile /home/conf/htpasswords AuthName Restricted Access AuthType Basic Require valid-user /Location when you get that working, put all the clever stuff back in, a piece at a time BTW, I'm not sure Location /content/* is valid syntax (never use Location). Try Location /content instead.. Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. thx Praveen [EMAIL PROTECTED] wrote: -Original Message- From: Praveen Alavilli [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 3:13 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Problem with Satisfy Directive I am trying to let bots crawl my site with out requiring to authentication but it doesn't work for some reason. Never say doesn't work... what exactly happens: - does it allow access when you don't want it to? - does it not allow access when you want it to? Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. It doesn't even enforce the Basic auth if the user-agent doesn't match Googlebot even though I have Satisfy Any !! BrowserMatchNoCase Robot is_robot Location /content/* AuthUserFile /home/conf/htpasswords AuthName Restricted Access AuthType Basic Require valid-user Allow from env=is_robot Satisfy Any /Location thanks for any help Praveen -- --- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html 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 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]
Re: [EMAIL PROTECTED] Problem displaying French characters
On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am using what appears to be Apache 2.0.52 (the rpm package states it is httpd-2.0.52-22) on a CentOS 4 Linux system. I am trying to make some documentation available on our intranet so that it is accessible to our French subsidiary but I noticed that any accented characters in the text are appearing as strange characters. I am assuming this is something to do with fonts but have been unable to find a solution. My httpd.conf file is pretty much unchanged from the default installation other than being edited to change the server name and enable Server Side Includes. If I load the HTML into my browser directly from my local disk it looks fine but as soon as it is served via the web server I see the problem. Look in httpd.conf for the AddDefaultCharset directive and either change it to none or set it to something that makes sense for your content. Joshua. - 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] mod_deflate/mod_filter configuration
Hi, I want to use mod_deflate (in Apache 2.2.2) as I used mod_gzip before (in Apache 1.3): compressing with file extensions inclusions AND MIME-type, request-header and response-header exclusions. mod_gzip Apache 1.3 configuration: mod_gzip_on Yes mod_gzip_dechunk yes mod_gzip_temp_dir /tmp mod_gzip_keep_workfiles No mod_gzip_minimum_file_size 1000 mod_gzip_maximum_file_size 200 mod_gzip_maximum_inmem_size 6 mod_gzip_item_include file \.?htm mod_gzip_item_include file \.txt mod_gzip_item_include file \.xml mod_gzip_item_include file \.xsl mod_gzip_item_include file \.dtd mod_gzip_item_include file \.jsp mod_gzip_item_include file \.jsv mod_gzip_item_include file \.do mod_gzip_item_include file \.asp mod_gzip_item_include file \.srv mod_gzip_item_include mime ^text/.* mod_gzip_item_exclude mime ^text/css mod_gzip_item_exclude reqheader x-flash-version: .* mod_gzip_item_exclude rspheader Content-Disposition: attachment mod_deflate Apache 2.2.2 configuration: DeflateBufferSize 8192 DeflateCompressionLevel 6 DeflateFilterNote Ratio ratio DeflateMemLevel 9 DeflateWindowSize 15 FilterDeclare comp-resp FilterProvider comp-resp DEFLATE Request_URI /\.?htm|\.txt|\.xml|\.xsl|\.dtd|\.jsp|\.jsv|\.do|\.asp|\.srv/ FilterProvider comp-resp DEFLATE Content-Type /^text.*/ FilterProvider comp-resp INFLATE Content-Type /^text.css/ FilterProvider comp-resp DEFLATE Content-Disposition !/^attachment.*/ FilterProvider comp-resp INFLATE req=x-flash-version * FilterProtocol comp-resp change=yes FilterChain comp-resp I'm not sure it is the right way to compress text.* except text.css by writing 2 FilterProvider lines. Maybe Perl Compatible Regular Expressions allows writing it an easier way... With Content-Disposition I must deflate a negation of attachment otherwise, it doesn't work (deflate everything). I've got the inverse problem for req where I must inflate every x-flash-version. Is the option --with-pcre an obligation in the configure process before building to use regular expressions this way? What type of regular expression is used if it's not PCRE? This configuration is working for the moment, but it doesn't appear to be very stable. Has anyone a similar configuration? By the way, there is a problem in specifying resp= in the FilterProvider declaration, but a bug has already been opened for this (Bug#: 39420). Thanks in advance, Carl ROLLER - 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: Re: [EMAIL PROTECTED] Problem displaying French characters
Hi Joshua, Thanks very much for the suggestion. I changed the AddDefaultCharset directive as you suggested and it now works. Thanks again Neil From: Joshua Slive [EMAIL PROTECTED] Date: 2006/05/24 Wed AM 11:42:04 EDT To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Problem displaying French characters On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am using what appears to be Apache 2.0.52 (the rpm package states it is httpd-2.0.52-22) on a CentOS 4 Linux system. I am trying to make some documentation available on our intranet so that it is accessible to our French subsidiary but I noticed that any accented characters in the text are appearing as strange characters. I am assuming this is something to do with fonts but have been unable to find a solution. My httpd.conf file is pretty much unchanged from the default installation other than being edited to change the server name and enable Server Side Includes. If I load the HTML into my browser directly from my local disk it looks fine but as soon as it is served via the web server I see the problem. Look in httpd.conf for the AddDefaultCharset directive and either change it to none or set it to something that makes sense for your content. Joshua. - 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] mod_rewrite
I'm trying to remove two directories from the path of a website, but I just can't seem to get the mod_rewrite syntax right.I have a url coming in with a url like http://www.mysite.com/directoryone/directorytwo/mypage.php?key=valueAnd I'm trying to redirect it to http://www.mysite.com/mypage.php?key=valueI'm pretty sure I have the 'where I want it to go' part right: /$1 [QSA,R=301]But the removing of the two directories isn't being nice. :(
[EMAIL PROTECTED] ProxyPass and reverse
Hello, I used apache2 to reverse-proxy web proxy dir /ntop/- to application localhost dir - http://localhost:3000/ So when I do: http://pippo/ntop I see everything, graphics, numbers, hosts graphics.. ROOT PATH are ok, I can see them: es: /ntop/sortDataThpt.html /ntop/172.16.0.1.html /ntop/showPlugins.html?icmpWatch BUT SUBDIR NO ! es: /ntop/plugins/LastSeen es: /ntop/plugins/icmpWatch Can't see them, i receive this error: ### Error 404 The server cannot find the requested page (page expired or ntop configuration ?). Received request: GET /plugins/ntop/icmpWatch HTTP/1.1 ### What's wrong? localhost:3000/plugins/icmpWatch seem to translate - /ntop/plugins/ntop/icmpWatch Any idea? This is my configuration NTOP (PROXY REVERSE) on virtual host ProxyHTMLLogVerbose On LogLevel warn ProxyHTMLExtended On ProxyRequests Off Proxy * Order deny,allow Allow from all /Proxy ProxyPass /ntop/ http://localhost:3000/ ProxyPassReverse /ntop/ http://localhost:3000/ Location /ntop/ ProxyPassReverse / SetOutputFilter proxy-html ProxyHTMLURLMap / /ntop/ ProxyHTMLURLMap /ntop /ntop RequestHeader unset Accept-Encoding /Location ### Thanks!! Bye - Giovanni - - 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] Re: Need help with mod_layout
Can anyone please help? :-(On 5/23/06, Hex Star [EMAIL PROTECTED] wrote: Please, I need help with getting mod_layout to work. Basically, I'm trying to get a html page for header and footer to work for ads on sites, running Suse 10, currently only the header html file contains ad code, it's the google _javascript_ ad code. I've tried putting in LayoutDefaultHandlers Off and LayoutHandler text/html but in the error_log for apache I still get an 500 error for the header and footer saying premature end of script like it's expecting it to still be a cgi/php script...running the latest version ofthe mod_layout module ( 3.2.1) which compiled and installed without errors, cananyone please help? What am I doing wrong? What do I need to do to get this to work? Thanks!
Re: [EMAIL PROTECTED] mod_rewrite
Bob Smith wrote: I'm trying to remove two directories from the path of a website, but I just can't seem to get the mod_rewrite syntax right. I have a url coming in with a url like http://www.mysite.com/directoryone/directorytwo/mypage.php?key=value And I'm trying to redirect it to http://www.mysite.com/mypage.php?key=value Are your directories constants? Or are they some kind variable? To force such an external redirect, you could use in your httpd.conf RewriteRule ^/directoryone/directorytwo/(mypage\.php)$ /$1 [R=301,L] -- Robert - 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] mod_rewrite
On 5/24/06, Robert Ionescu [EMAIL PROTECTED] wrote: Bob Smith wrote: I'm trying to remove two directories from the path of a website, but I just can't seem to get the mod_rewrite syntax right. I have a url coming in with a url like http://www.mysite.com/directoryone/directorytwo/mypage.php?key=value And I'm trying to redirect it to http://www.mysite.com/mypage.php?key=value Are your directories constants? Or are they some kind variable?To force such an external redirect, you could use in your httpd.confRewriteRule ^/directoryone/directorytwo/(mypage\.php)$ /$1 [R=301,L] Yeah, the directories I want to remove will be the same. but the pages will be different (I'm hoping I don't have to do one for each individual page)I tried:RewriteEngine OnRewriteRule ^/directoryone/directory/two/(.*)$ /$1 [QSA,R=301] But that's throwing a 500 error
[EMAIL PROTECTED] Auth Apache 2 agaisnt AD Groups
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is it possible to authentication apache2 agaisnt Active Directory 2003 groups? I've been able to successful auth AD users, and auth according to current ou's, but I haven't seen anything about going agaisnt an AD group. Is it doable? Thanks, - -- Aaron Axelsen [EMAIL PROTECTED] Great hosting, low prices. Modevia Web Services LLC -- http://www.modevia.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEdLO0uucONIvD0AMRAquLAJ9XkWq4Y205qj4+uacSik6kWB1jWACg59oX IWe6a/rZ7A7ZnMjnOmgYbdY= =/BBC -END PGP SIGNATURE- - 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] Auth Apache 2 agaisnt AD Groups
-Original Message- From: Aaron Axelsen [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 15:28 To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Auth Apache 2 agaisnt AD Groups Is it possible to authentication apache2 agaisnt Active Directory 2003 groups? I've been able to successful auth AD users, and auth according to current ou's, but I haven't seen anything about going agaisnt an AD group. Is it doable? Thanks, - -- Aaron Axelsen [EMAIL PROTECTED] I'm working on a security model just like that now. -- PerlAuthzHandler Apache::AuthzCache Apache::AuthzLDAP Apache::AuthzCache::manage_cache I had to go to Perl modules and am doing extensive re-writing. AuthzLDAP.pm AuthCache.pm for authorization. I wrapped the AuthzLDAP in the Cache module to reduce the hit to the LDAP servers. Thanx Aaron N Wagner Monitoring Systems and Network Tools CCO-Command Center Operations SELECT * FROM life ORDER BY important_stuff ASC - 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] Auth Apache 2 agaisnt AD Groups
Works here: AuthName some name here AuthType Basic AuthLDAPBindDN apropriate info here AuthLDAPBindPassword password AuthLDAPAuthoritative on AuthLDAPRemoteUserIsDN on AuthLDAPGroupAttribute member AuthLDAPGroupAttributeIsDN on AuthLDAPURL ldap://server.name/OU==Divisions,OU=Users,OU=gactr,DC=gc,DC=nat?sAMAccountNa me?sub?(objectclass=*) Limit GET Require group CN=NSS,OU=Networking Support Services,OU=Information Technology Services,OU=Divisions,OU=Users,OU=gactr,DC=gc,DC=nat Require group CN=WSS,OU=Workstation Support Services,OU=Information Technology Services,OU=Divisions,OU=Users,OU=gactr,DC=gc,DC=nat Require group CN=PSS,OU=Programming Support Services,OU=Information Technology Services,OU=Divisions,OU=Users,OU=gactr,DC=gc,DC=nat Require group CN=ITS-adm,OU=Information Technology Services,OU=Divisions,OU=Users,OU=gactr,DC=gc,DC=nat /Limit Where the CN's are security group - global in AD. Hope this helps. --- Robin P. Blanchard Systems Integration Specialist Georgia Center for Continuing Education fon: 706.542.2404 fax: 706.542.6546 --- -Original Message- From: Aaron Axelsen [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 3:28 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Auth Apache 2 agaisnt AD Groups -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is it possible to authentication apache2 agaisnt Active Directory 2003 groups? I've been able to successful auth AD users, and auth according to current ou's, but I haven't seen anything about going agaisnt an AD group. Is it doable? Thanks, - -- Aaron Axelsen [EMAIL PROTECTED] Great hosting, low prices. Modevia Web Services LLC -- http://www.modevia.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEdLO0uucONIvD0AMRAquLAJ9XkWq4Y205qj4+uacSik6kWB1jWACg59oX IWe6a/rZ7A7ZnMjnOmgYbdY= =/BBC -END PGP SIGNATURE- - 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]
Re: [EMAIL PROTECTED] ProxyPass and reverse
What version of mod_proxy_html? ProxyHTMLURLMap / /ntop/ The above can replace all occurences of '/' with '/ntop/', which is what is happening (Logic is 'starts-with' in HTML links, but 'contains' in scripting events and embedded script and style sections). Try Regular expression mapping in mod_proxy_html 2.0: ProxyHTMLURLMap ^/ /ntop/ R Also, what are these supposed to be doing (they don't make sense): ProxyPassReverse / ProxyHTMLURLMap /ntop /ntop -B On 5/24/06, Giovanni [EMAIL PROTECTED] wrote: Hello, I used apache2 to reverse-proxy web proxy dir /ntop/- to application localhost dir - http://localhost:3000/ So when I do: http://pippo/ntop I see everything, graphics, numbers, hosts graphics.. ROOT PATH are ok, I can see them: es: /ntop/sortDataThpt.html /ntop/172.16.0.1.html /ntop/showPlugins.html?icmpWatch BUT SUBDIR NO ! es: /ntop/plugins/LastSeen es: /ntop/plugins/icmpWatch Can't see them, i receive this error: ### Error 404 The server cannot find the requested page (page expired or ntop configuration ?). Received request: GET /plugins/ntop/icmpWatch HTTP/1.1 ### What's wrong? localhost:3000/plugins/icmpWatch seem to translate - /ntop/plugins/ntop/icmpWatch Any idea? This is my configuration NTOP (PROXY REVERSE) on virtual host ProxyHTMLLogVerbose On LogLevel warn ProxyHTMLExtended On ProxyRequests Off Proxy * Order deny,allow Allow from all /Proxy ProxyPass /ntop/ http://localhost:3000/ ProxyPassReverse /ntop/ http://localhost:3000/ Location /ntop/ ProxyPassReverse / SetOutputFilter proxy-html ProxyHTMLURLMap / /ntop/ ProxyHTMLURLMap /ntop /ntop RequestHeader unset Accept-Encoding /Location ### Thanks!! Bye - Giovanni - - 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]
Re: [EMAIL PROTECTED] mod_rewrite
On 5/24/06, Bob Smith [EMAIL PROTECTED] wrote: On 5/24/06, Robert Ionescu [EMAIL PROTECTED] wrote: Bob Smith wrote: I'm trying to remove two directories from the path of a website, but I just can't seem to get the mod_rewrite syntax right. I have a url coming in with a url like http://www.mysite.com/directoryone/directorytwo/mypage.php?key=value And I'm trying to redirect it to http://www.mysite.com/mypage.php?key=value Are your directories constants? Or are they some kind variable? To force such an external redirect, you could use in your httpd.conf RewriteRule ^/directoryone/directorytwo/(mypage\.php)$ /$1 [R=301,L] Yeah, the directories I want to remove will be the same. but the pages will be different (I'm hoping I don't have to do one for each individual page) I tried: RewriteEngine On RewriteRule ^/directoryone/directory/two/(.*)$ /$1 [QSA,R=301] But that's throwing a 500 error 1) Don't forget your [L]ast flag. [QSA,R=301,L] 2) Are your RewriteRules in a Location? If so, then the location dir is already stripped before the RewriteRule gets called. 3) I am not sure QSA is doing what you want here (not tried it). Try these: RewriteRule ^/directoryone/directorytwo/(.*)$ /$1? [QSA,R=301,L] RewriteRule ^/directoryone/directorytwo/(.*)$ /$1?%{QUERY_STRING} [R=301,L] 4) Turn on debugging with RewriteLogLevel 2 and RewriteLog /some/log/file. -B - 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] Auth Apache 2 agaisnt AD Groups
Hi Robin, On 5/25/06, Robin P. Blanchard [EMAIL PROTECTED] wrote: [snip] AuthLDAPURL ldap://server.name/OU==Divisions,OU=Users,OU=gactr,DC=gc,DC=nat?sAMAccountNa me?sub?(objectclass=*) I don't suppose you've had the need to try this with multiple servers? I posted last week (see http://marc.theaimsgroup.com/?l=apache-httpd-usersm=114793737109878w=2 - without answer) about the failover format not working. I'm assuming you haven't tried this, but would be interested to hear any experiences. cheers dim - 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] rewrite rule
Thanks, I modified your proposition as follows: Location /test RewriteEngine On RewriteRule ^(.*)/([^/]*\.)(html|htm|php)$ /test-redir.php?page=/test/$2$3 [L] /Location and rule works ok, but produced result (two frames: top one containing original file, and bottom one used for some statistics generation and so on) does not display original file, you can check this link: http://alice.oiram.net/test/index.html how the result looks like, I tried NS option without success if I stop rewrite engine result shows page properly, similar to that: http://alice.oiram.net/test-noredir.php any help very much appreciated? Krist van Besien wrote: On 5/22/06, Mariusz Handke [EMAIL PROTECTED] wrote: Hi, Can anyone help me to create, or explain how to get around with rewrite rules, please. The thing to do is: in: http://host/dir/file out: http://host/script.php?p=/dir/file RewriteRule ^(.*)$/script.php?p=$1 Krist -- Regards, Mariusz Handke [MJH1-6BONE, MJH6-RIPE] FWD: 80064 UK Toll Free: +44-870-3403231 - 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] Re: Need help with mod_layout
Hmm thanks, but I'm running Apache 1.3.36 not 2.x...and the module does seem to be working, it just doesn't like the html file with the google adsense _javascript_ in it as despite my described attempts it seems to still be trying to parse the header/footer files as if they were cgi/php scripts...thanks for the suggestion though, anyone got anymore ideas? :-) On 5/24/06, Robin P. Blanchard [EMAIL PROTECTED] wrote: my experience with mod_layout is that you need to pull the CVS version to use with apache2 (which i believe is default on SUSE 10) and dynamic pages such as php. ---Robin P. BlanchardSystems Integration SpecialistGeorgia Center for Continuing Educationfon: 706.542.2404 fax: 706.542.6546--- From: Hex Star [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 24, 2006 2:08 PMTo: users@httpd.apache.orgSubject: [EMAIL PROTECTED] Re: Need help with mod_layout Can anyone please help? :-( On 5/23/06, Hex Star [EMAIL PROTECTED] wrote: Please, I need help with getting mod_layout to work. Basically, I'm trying to get a html page for header and footer to work for ads on sites, running Suse 10, currently only the header html file contains ad code, it's the google _javascript_ ad code. I've tried putting in LayoutDefaultHandlers Off and LayoutHandler text/html but in the error_log for apache I still get an 500 error for the header and footer saying premature end of script like it's expecting it to still be a cgi/php script...running the latest version ofthe mod_layout module ( 3.2.1) which compiled and installed without errors, cananyone please help? What am I doing wrong? What do I need to do to get this to work? Thanks!
[EMAIL PROTECTED] [Question]rotatelogs
Hi Alls: I have a trouble to use rotatelog for httpd-2.0.55 on Linux. Would anyone help me? In httpd.conf: ErrorLog bin/rotatelogs logs/error_log 14400 I got a error message from httpd and couldnot start httpd: (2)No such file or directory: Couldn't start ErrorLog process This message is from server/log/log_child(). I think httpd was unable create child process for pipe, but I don't know why. Many thanks T. Okamoto - 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] Cannot load /opt/apache2.2/modules/libphp5.so into server
Hi Friends, I have installed apache2.2.2 with php 5.1.2 in Fedora Core 5 When I am trying to start apache with the command /opt/apache2.2/bin/apachectl start It is giving the following error httpd: Syntax error on line 110 of /opt/apache2.2/conf/httpd.conf: Cannot load /opt/apache2.2/modules/libphp5.so into server: /opt/apache2.2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied what could be the problem. Any suggestion would be highly appreciated. - 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]