[users@httpd] building and installing on different servers, different directories
hi Apache gurus, we have -what I assume a rather typical situation of modern IT environment- no compiler on our production servers. So, the building of Apache will need to be done on (duh) development servers, that do not necessarily have the same directory structures as the target production server where the installation needs to be done. When I run the configure utility, I know that the prefix option will specify a different location for the installation than what otherwise would be the default location of /usr/local. But I also see that all the Makefiles in the different subdirectories are generated with hardcoded directory names of my development server. Directory names that do not exist on my production server. So the make install complains that it doesn't find the source files to install, since it looks for the directories that exist on the development server and which do not exist on the production server. So : how can I get the compiled set of files transferred to my production server and install them there from a different source directory tree ? thx in advance for your reactions Rob This message was sent using IMP, the Internet Messaging Program.
Re: [users@httpd] building and installing on different servers, different directories
Asuming both servers are pretty much same, ie same linux kernel and packages, why dont you install apache on the dev server under lets say /usr/local/apache2 and then transfer the complete apache2 directory onto prod server? On Jan 31, 2012 8:41 PM, Rob De Langhe rob.de.lan...@twistfare.be wrote: hi Apache gurus, we have -what I assume a rather typical situation of modern IT environment- no compiler on our production servers. So, the building of Apache will need to be done on (duh) development servers, that do not necessarily have the same directory structures as the target production server where the installation needs to be done. When I run the configure utility, I know that the prefix option will specify a different location for the installation than what otherwise would be the default location of /usr/local. But I also see that all the Makefiles in the different subdirectories are generated with hardcoded directory names of my development server. Directory names that do not exist on my production server. So the make install complains that it doesn't find the source files to install, since it looks for the directories that exist on the development server and which do not exist on the production server. So : how can I get the compiled set of files transferred to my production server and install them there from a different source directory tree ? thx in advance for your reactions Rob This message was sent using IMP, the Internet Messaging Program.
Re: [users@httpd] building and installing on different servers, different directories
You can also create symbolic links for the missing directories. On Jan 31, 2012 11:39 PM, Igor Cicimov icici...@gmail.com wrote: Asuming both servers are pretty much same, ie same linux kernel and packages, why dont you install apache on the dev server under lets say /usr/local/apache2 and then transfer the complete apache2 directory onto prod server? On Jan 31, 2012 8:41 PM, Rob De Langhe rob.de.lan...@twistfare.be wrote: hi Apache gurus, we have -what I assume a rather typical situation of modern IT environment- no compiler on our production servers. So, the building of Apache will need to be done on (duh) development servers, that do not necessarily have the same directory structures as the target production server where the installation needs to be done. When I run the configure utility, I know that the prefix option will specify a different location for the installation than what otherwise would be the default location of /usr/local. But I also see that all the Makefiles in the different subdirectories are generated with hardcoded directory names of my development server. Directory names that do not exist on my production server. So the make install complains that it doesn't find the source files to install, since it looks for the directories that exist on the development server and which do not exist on the production server. So : how can I get the compiled set of files transferred to my production server and install them there from a different source directory tree ? thx in advance for your reactions Rob This message was sent using IMP, the Internet Messaging Program.
Re: [users@httpd] How to make Apache mod_deflate and Transfer-encoding : Chunked work together?
On 1/27/2012 2:50 PM, sameer shah wrote: As you can see in above 2 headers chunking is working only if the compression is turned off. On 27.01.12 15:37, William A. Rowe Jr. wrote: Chunking is not a feature that the client gets to choose. Your client code is badly written if it is that fragile. IIUC, it's not badly written client code, but a want from webserver admin, that seems not to be fullfillable with current apache/mod_deflate... It has to be able to tolerate either of Content-Length or Transfer-Encoding. You don't have command or control of the mechanism used if you are an HTTP/1.1 client. It is always the server's choice. On 1/30/2012 8:30 AM, Matus UHLAR - fantomas wrote: You can however send HTTP/1.0 request with which the server MUST NOT send chunked response. Looking at the original post this is just the opposite OP wants to achieve. On 30.01.12 13:06, William A. Rowe Jr. wrote: However, it need not send Content-Length either. If the C-L could not be determined, keepalives would not be honored, and you would be stuck in connection-per-request mode. I agree, using http/1.0 is not what the OP wants. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. REALITY.SYS corrupted. Press any key to reboot Universe. - 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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] rewrite engine shows text instead of executes script
* Igor Cicimov icici...@gmail.com [120130 18:11]: If I eliminate it, then I just a get an index page.. Correct, and in that index.html page you call or redirect to your pyton script. That's the proper way to do it so you keep your web pages structure separate from your cgi scripts that live in a separate directory cgi-bin. Thank you for the explanation. Could you give what you would consider to be a proper example? regards -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] How to make Apache mod_deflate and Transfer-encoding : Chunked work together?
On 1/31/2012 9:37 AM, Matus UHLAR - fantomas wrote: On 1/27/2012 2:50 PM, sameer shah wrote: As you can see in above 2 headers chunking is working only if the compression is turned off. On 27.01.12 15:37, William A. Rowe Jr. wrote: Chunking is not a feature that the client gets to choose. Your client code is badly written if it is that fragile. IIUC, it's not badly written client code, but a want from webserver admin, that seems not to be fullfillable with current apache/mod_deflate... No. Protocols and specifications exist for a reason. Even *IF* you could force chunk behavior at the origin server, you would be incapable of producing the same results as the request travels through forward, reverse and transparent proxies outside of that administrators control. It has to be able to tolerate either of Content-Length or Transfer-Encoding. You don't have command or control of the mechanism used if you are an HTTP/1.1 client. It is always the server's choice. And tolerate disconnection to indicate end of response. - 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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] ExtFilter and Reverse Proxy Woes.
Gents, This appears to be an issue for Linux, Apache 2.2.15, compiled from source... extfiler=shared Whilst you are able to execute ExtFilters on local files, a Reverse Proxy configuration does not work the same way. This has been reported here: http://objectmix.com/apache/706472-proxypass-extfilter.html Config: VirtualHost *:80 ServerAdmin webmas...@domain.com DocumentRoot /usr/local/apache/htdocs/ ServerName search.domain.com ServerAlias search.domain.com ErrorLog logs/search.domain.com-error_log CustomLog logs/search.domain.com-access.log combined Proxy balancer://domain.com BalancerMember http://ip1 BalancerMember http://ip2 /Proxy ExtFilterDefine fixtext mode=output intype=text/html cmd=/bin/sed s/html/HTML/ig SetOutputFilter fixtext RewriteEngine on ProxyPass / balancer://domain.com/ ProxyPassReverse / balancer://domain.com/ /VirtualHost I am completely out of thoughts on this matter. If you guys could help, that would be wonderful Thanks! Vasiliy PS Removing the revproxy, and things work like a charm.
[users@httpd] Disabling virtual hosts in Apache
Hi everybody, I would like to know how can I do to disable a virtual host and print an error page in virtual host not enabled. Having www.mydomain.com and www.mydomain2.com, when I execute a2dissite www.mydomain.com I get www.domain2.com (its contents) and if I execute a2dissite www.mydomain2.comI get www.domain.com (its contents). Please, can you tell me how can I do this? I would like to get to manage virtual hosts with different domains and to have the possibility to disable some virtual host, but having enabled another virtual hosts. Thanks for your help. Cheers! -- *Antonio Manuel Fernández Pérez* Ingeniero Técnico Informático Dpto. Informático Fabergames S.L. TLF:96626 / FAX:966551801 www.fabergames.com Fabergames respeta su privacidadhttp://www.fabergames.com/index.php/component/content/article/57/1-politica-de-privacidad * * * ADVERTENCIA LEGAL * * * Le informamos, como destinatario de este mensaje, que el correo electrónico y las comunicaciones por medio de Internet no permiten asegurar ni garantizar la confidencialidad de los mensajes transmitidos, así como tampoco su integridad o su correcta recepción, por lo que FABERGAMES S.L. no asume responsabilidad alguna por tales circunstancias. Si no consintiese en la utilización del correo electrónico o de las comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro conocimiento de manera inmediata. Este mensaje va dirigido, de manera exclusiva, a su destinatario y contiene información confidencial y sujeta al secreto profesional, cuya divulgación no está permitida por la ley. En caso de haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos lo comunique mediante correo electrónico remitido a nuestra atención o a través del teléfono (+ 34) 966 26 11 11 y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o utilización de este mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por la ley.
Re: [users@httpd] Disabling virtual hosts in Apache
2012/1/31 Antonio Fernández Pérez antoniofernan...@fabergames.com Hi everybody, I would like to know how can I do to disable a virtual host and print an error page in virtual host not enabled. Having www.mydomain.com and www.mydomain2.com, when I execute a2dissite www.mydomain.com I get www.domain2.com (its contents) and if I execute a2dissite www.mydomain2.com I get www.domain.com (its contents). Please, can you tell me how can I do this? I would like to get to manage virtual hosts with different domains and to have the possibility to disable some virtual host, but having enabled another virtual hosts. The a2dissite/a2ensite tools are part of the Debian-customized distribution of Apache. The tool actually removes the vhost configuration from the files included in the server's configuration. Apache does not even know that a disabled site exists. Here is my suggestion. Create a new vhost config with the filename starting with 000 (or enable the included default vhost). Set that vhost to show an Site Disabled error no matter what the request is. Now when you disable a site using a2dissite, you will get the error message from the default vhost. - Y
[users@httpd] Directive SSLSessionCache
Hi, can i put the SSLSessionCache directive in a virtualHost bracket ? The shmdb name must be different for each virtualhost ? Thanks. Stephane. - 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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] SSL and subdomain redirects
My server hosts all requests to example.com, i.e. example.com, www.example.com http://www.google.com/url?sa=Dq=www.example.comusg=AFQjCNFaEl-ukxNKgv1eOPdRag7GbVqELA, customer1.example.com, customer2.example.com, etc. By all, I mean all that do not have a pre-defined DNS record to tell the client to go somewhere else. I have an SSL certificate that is only valid for www.example.com http://www.google.com/url?sa=Dq=www.example.comusg=AFQjCNFaEl-ukxNKgv1eOPdRag7GbVqELA, not even example.com. I haven't been able to find a good answer to my question, since it involves rewrites in different cases. Here's what I want to do: [code] if HTTP_HOST == 'example.com' // All requests for example.com, regardless of SSL, redirect to SSL www site redirect to https://www.example.com/theRestOfTheURL http://www.google.com/url?sa=Dq=https://www.example.com/theRestOfTheURLusg=AFQjCNGDISTggojWmiYcXiAQH5ai24SArg else if HTTP_HOST == 'www.example.com' http://www.google.com/url?sa=Dq=www.example.com%27usg=AFQjCNGU-2mWwuFSfg9yHe1Q46Mnd6S8yQ and SERVER_PORT != 443 // For non-SSL requests to www, redirect to SSL www redirect to https://www.example.com/theRestOfTheURL http://www.google.com/url?sa=Dq=https://www.example.com/theRestOfTheURLusg=AFQjCNGDISTggojWmiYcXiAQH5ai24SArg else if SERVER_PORT == 443 // For any other requests that are trying to use SSL, redirect to non-SSL of the same domain name redirect to http://HTTP_HOST/theRestOfTheURL http://www.google.com/url?sa=Dq=http://HTTP_HOST/theRestOfTheURLusg=AFQjCNEV32IOZQKDYoBo81gx8SoMLQF4bQ Carry out other RewriteRules I may have in place [/code] I would prefer to be able to accomplish this with .htaccess rules only. But if I need to accomplish this with a combination of .htaccess rules AND Apache configuration changes, I'm ok with that too. Thank you in advance!Let me know if you need more information. -- Thanks, Dan Schaefer Web Developer/Systems Analyst Performance Administration Corp. ph 800-405-3148
[users@httpd] Apache HTTP Server 2.2.22 Released
Apache HTTP Server 2.2.22 Released The Apache Software Foundation and the Apache HTTP Server Project are pleased to announce the release of version 2.2.22 of the Apache HTTP Server (Apache). This version of Apache is principally a security and bug fix release, including the following significant security fixes: * SECURITY: CVE-2011-3368 (cve.mitre.org) Reject requests where the request-URI does not match the HTTP specification, preventing unexpected expansion of target URLs in some reverse proxy configurations. * SECURITY: CVE-2011-3607 (cve.mitre.org) Fix integer overflow in ap_pregsub() which, when the mod_setenvif module is enabled, could allow local users to gain privileges via a .htaccess file. * SECURITY: CVE-2011-4317 (cve.mitre.org) Resolve additional cases of URL rewriting with ProxyPassMatch or RewriteRule, where particular request-URIs could result in undesired backend network exposure in some configurations. * SECURITY: CVE-2012-0021 (cve.mitre.org) mod_log_config: Fix segfault (crash) when the '%{cookiename}C' log format string is in use and a client sends a nameless, valueless cookie, causing a denial of service. The issue existed since version 2.2.17. * SECURITY: CVE-2012-0031 (cve.mitre.org) Fix scoreboard issue which could allow an unprivileged child process could cause the parent to crash at shutdown rather than terminate cleanly. * SECURITY: CVE-2012-0053 (cve.mitre.org) Fixed an issue in error responses that could expose httpOnly cookies when no custom ErrorDocument is specified for status code 400. The Apache HTTP Project thanks halfdog, Context Information Security Ltd, Prutha Parikh of Qualys, and Norman Hippert for bringing these issues to the attention of the security team. We consider this release to be the best version of Apache available, and encourage users of all prior versions to upgrade. Apache HTTP Server 2.2.22 is available for download from: http://httpd.apache.org/download.cgi Please see the CHANGES_2.2 file, linked from the download page, for a full list of changes. A condensed list, CHANGES_2.2.22 includes only those changes introduced since the prior 2.2 release. A summary of all of the security vulnerabilities addressed in this and earlier releases is available: http://httpd.apache.org/security/vulnerabilities_22.html This release includes the Apache Portable Runtime (APR) version 1.4.5 and APR Utility Library (APR-util) version 1.4.2, bundled with the tar and zip distributions. The APR libraries libapr and libaprutil (and on Win32, libapriconv version 1.2.1) must all be updated to ensure binary compatibility and address many known security and platform bugs. APR-util version 1.4 represents a minor version upgrade from earlier httpd source distributions, which previously included version 1.3. Apache 2.2 offers numerous enhancements, improvements, and performance boosts over the 2.0 codebase. For an overview of new features introduced since 2.0 please see: http://httpd.apache.org/docs/2.2/new_features_2_2.html This release builds on and extends the Apache 2.0 API. Modules written for Apache 2.0 will need to be recompiled in order to run with Apache 2.2, and require minimal or no source code changes. http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/VERSIONING When upgrading or installing this version of Apache, please bear in mind that if you intend to use Apache with one of the threaded MPMs (other than the Prefork MPM), you must ensure that any modules you will be using (and the libraries they depend on) are thread-safe. - 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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] rewrite engine shows text instead of executes script
You can use meta tag in your head section to call your script for example meta http-equiv=refresh content=0;url= http://yourdomain.com/path/to/your/cgi-script.py; which will call your script immediately on index.html load. Or you can also use java script redirect in the body tag of index.html something like this: body onLoad=window.location= http://yourdomain.com/path/to/your/cgi-script.py; You can also use a relative path to your script in the examples above in regards to the index.html file so you can put something like ../cgi-bin/script.py instead http://yourdomain.com/path/to/your/cgi-script.py Igor On Wed, Feb 1, 2012 at 3:22 AM, Tim Johnson t...@akwebsoft.com wrote: * Igor Cicimov icici...@gmail.com [120130 18:11]: If I eliminate it, then I just a get an index page.. Correct, and in that index.html page you call or redirect to your pyton script. That's the proper way to do it so you keep your web pages structure separate from your cgi scripts that live in a separate directory cgi-bin. Thank you for the explanation. Could you give what you would consider to be a proper example? regards -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Re: ExtFilter and Reverse Proxy Woes.
Guys, Testing with : RewriteRule ^/(.*) balancer://blah/$1 [P] Same problem... Thanks! On Tue, Jan 31, 2012 at 12:05 PM, V B for...@clustermagnet.com wrote: Gents, This appears to be an issue for Linux, Apache 2.2.15, compiled from source... extfiler=shared Whilst you are able to execute ExtFilters on local files, a Reverse Proxy configuration does not work the same way. This has been reported here: http://objectmix.com/apache/706472-proxypass-extfilter.html Config: VirtualHost *:80 ServerAdmin webmas...@domain.com DocumentRoot /usr/local/apache/htdocs/ ServerName search.domain.com ServerAlias search.domain.com ErrorLog logs/search.domain.com-error_log CustomLog logs/search.domain.com-access.log combined Proxy balancer://domain.com BalancerMember http://ip1 BalancerMember http://ip2 /Proxy ExtFilterDefine fixtext mode=output intype=text/html cmd=/bin/sed s/html/HTML/ig SetOutputFilter fixtext RewriteEngine on ProxyPass / balancer://domain.com/ ProxyPassReverse / balancer://domain.com/ /VirtualHost I am completely out of thoughts on this matter. If you guys could help, that would be wonderful Thanks! Vasiliy PS Removing the revproxy, and things work like a charm.
Re: [users@httpd] Directive SSLSessionCache
http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslsessioncache where it says the Context is server config, so no mention of virtual host right? If you click on Context link in the box , you will find explanation what Context means: http://httpd.apache.org/docs/2.2/mod/directive-dict.html#Context So, after reading these you will find out that you can't use it inside virtual host ... very simple. On Wed, Feb 1, 2012 at 5:14 AM, dou...@free.fr wrote: Hi, can i put the SSLSessionCache directive in a virtualHost bracket ? The shmdb name must be different for each virtualhost ? Thanks. Stephane. - 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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] rewrite engine shows text instead of executes script
* Igor Cicimov icici...@gmail.com [120131 13:58]: You can use meta tag in your head section to call your script for example meta http-equiv=refresh content=0;url= http://yourdomain.com/path/to/your/cgi-script.py; which will call your script immediately on index.html load. Or you can also use java script redirect in the body tag of index.html something like this: body onLoad=window.location= http://yourdomain.com/path/to/your/cgi-script.py; You can also use a relative path to your script in the examples above in regards to the index.html file so you can put something like ../cgi-bin/script.py instead http://yourdomain.com/path/to/your/cgi-script.py Thank you for introducing me to th 21st century. :) -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Re: Apache HTTP Server 2.2.22 Released
Any ideas if there is any official distribution point for Win 64-bit? William A. Rowe Jr. wrote: Apache HTTP Server 2.2.22 Released Apache HTTP Server 2.2.22 is available for download from: http://httpd.apache.org/download.cgi - 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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org