Re: [us...@httpd] JuHun J Ryu is out of the office.
and Jonathan R. Zuckerman is out of coffee. On Fri, May 7, 2010 at 6:43 PM, juhun.j@kp.org wrote: I will be out of the office starting 05/07/2010 and will not return until 05/08/2010. I will be out of office for Success Rx in Pasadena. For Health Education, please call ext 3018. For Conference Room Scheduling, please call ext 2663. Thank you
Re: [us...@httpd] HTML rendering capability
On Tue, Apr 27, 2010 at 10:12 PM, rangeli nepal rangeli.ne...@gmail.comwrote: Good Evening Everybody, I am not sure if I am asking this question at right forum or not. I am sorry if it is not the right forum. I am wondering if there is way based on http headers to determine if the requesting party has html rendering capability or not? Any ideas or suggestion will be appreciated. Thank you. Santos This is definitely not the right forum for that question, I think this is dedicated to questions about installing and configuring the apache web server, however.. I think it's a safe bet that if someone is transporting data on the hypertext transfer protocol, you can expect that they have the ability to parse hypertext markup language.
Re: [us...@httpd] Rewrite rule rewriting unexpectedly
On Mon, Apr 19, 2010 at 5:59 PM, Eric Covener cove...@gmail.com wrote: On Mon, Apr 19, 2010 at 5:44 PM, Glenn Gillis gl...@elaw.org wrote: Would any rewriting gurus out there care to speculate why the rewrite rule: RewriteRule /blog http://spotlight.wordpress.com/; would cause the image URL: img src=/system/files/images_content/blogspot_final_framed_0.jpg alt=what we do width=500 height=125 / to redirect to the spotlight.wordpress.com webpage? Running Apache 2.2.9 on FreeBSD 6.x. If you want to match exactly /blog and not that string inside the URL, you need to anchor it with e.g. ^/blog$ -- Eric Covener cove...@gmail.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 because! regular expressions are by definition greedy, which means they will match the largest possible string of characters. If you don't give it boundaries like the start and end string delimiters it just sucks up everything that it can.
Re: [us...@httpd] Custom ETags
On Tue, Apr 13, 2010 at 10:34 AM, Brian Mearns bmea...@ieee.org wrote: I'd like to use stronger and correlated ETag, namely the hash of the content being served. Obviously it's a drag to do this in-line, so I'm planning an automated task to generate the ETag values and store them on the server. Is there any way I can get httpd to grab these stored values for use in the Etag header? I'm flexible on how I store them: in a database, in one large file, each in its own file named according to the resource, etc. Any ideas? Thanks, -Brian -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://keys.gnupg.net - 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 I have some static content that's actually built dynamically on the server (it's just a concatenated, minified JS or CSS file), and therefore can't use Apache's default etags/expires headers which I believe only apply to real files, so I do the same thing you're suggesting, in php. I would much rather let Apache take care of this for me, but my obsessive and orderly mind demands that I keep the Javascript and CSS that applies to different parts of the site in different files, and my background in high-load high-availability web-serving makes me want to keep the number of http requests down. So my question to you is, what is your reason for wanting to do this, and how would you implement if it did exist? It's pretty trivial to do it with a scripting language that can alter response headers, if in fact it's really necessary..
Re: [us...@httpd] Custom ETags
On Tue, Apr 13, 2010 at 12:13 PM, Brian Mearns mearn...@gmail.com wrote: On Tue, Apr 13, 2010 at 10:49 AM, Jonathan Zuckerman j.zucker...@gmail.com wrote: On Tue, Apr 13, 2010 at 10:34 AM, Brian Mearns bmea...@ieee.org wrote: I'd like to use stronger and correlated ETag, namely the hash of the content being served. Obviously it's a drag to do this in-line, so I'm planning an automated task to generate the ETag values and store them on the server. Is there any way I can get httpd to grab these stored values for use in the Etag header? I'm flexible on how I store them: in a database, in one large file, each in its own file named according to the resource, etc. Any ideas? Thanks, -Brian -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://keys.gnupg.net - 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 I have some static content that's actually built dynamically on the server (it's just a concatenated, minified JS or CSS file), and therefore can't use Apache's default etags/expires headers which I believe only apply to real files, so I do the same thing you're suggesting, in php. I would much rather let Apache take care of this for me, but my obsessive and orderly mind demands that I keep the Javascript and CSS that applies to different parts of the site in different files, and my background in high-load high-availability web-serving makes me want to keep the number of http requests down. So my question to you is, what is your reason for wanting to do this, and how would you implement if it did exist? It's pretty trivial to do it with a scripting language that can alter response headers, if in fact it's really necessary.. The reason is just to optimize caching. I guess the ETag doesn't really need to be any stronger than the built-in, but I would like it to be correlated, meaning if the content hasn't actually changed, or has changed and then changed back, it will have the same ETag even though the last-mod time is different. I'm not sure exactly what you mean by how I would implement it. In terms of generating the ETag values? For true static content, I would just hash the file. For PHP, for instance, I would filter it through `php -w` first, and hash the result. Like I said, I'm not sure exactly how I will store the generated values, it depends on how I'm actually getting the values in the headers. I would use either a cron job or a publishing-script to update the stored ETags. I have done this before in PHP, but I'd hate to have to serve static content through a wrapper PHP script just to put an ETag header in there. Thanks, -Brian -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://keys.gnupg.net - 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 check out http://httpd.apache.org/docs/2.0/mod/core.html#fileetag If you can't get what you want with that, my personal opinion is that the performance gained by your request would not justify the amount of time required to develop it.
Re: [us...@httpd] Custom ETags
On Tue, Apr 13, 2010 at 1:20 PM, Brian Mearns mearn...@gmail.com wrote: On Tue, Apr 13, 2010 at 1:13 PM, Jonathan Zuckerman j.zucker...@gmail.com wrote: On Tue, Apr 13, 2010 at 12:13 PM, Brian Mearns mearn...@gmail.com wrote: On Tue, Apr 13, 2010 at 10:49 AM, Jonathan Zuckerman j.zucker...@gmail.com wrote: On Tue, Apr 13, 2010 at 10:34 AM, Brian Mearns bmea...@ieee.org wrote: I'd like to use stronger and correlated ETag, namely the hash of the content being served. Obviously it's a drag to do this in-line, so I'm planning an automated task to generate the ETag values and store them on the server. Is there any way I can get httpd to grab these stored values for use in the Etag header? I'm flexible on how I store them: in a database, in one large file, each in its own file named according to the resource, etc. Any ideas? Thanks, -Brian -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://keys.gnupg.net - 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 I have some static content that's actually built dynamically on the server (it's just a concatenated, minified JS or CSS file), and therefore can't use Apache's default etags/expires headers which I believe only apply to real files, so I do the same thing you're suggesting, in php. I would much rather let Apache take care of this for me, but my obsessive and orderly mind demands that I keep the Javascript and CSS that applies to different parts of the site in different files, and my background in high-load high-availability web-serving makes me want to keep the number of http requests down. So my question to you is, what is your reason for wanting to do this, and how would you implement if it did exist? It's pretty trivial to do it with a scripting language that can alter response headers, if in fact it's really necessary.. The reason is just to optimize caching. I guess the ETag doesn't really need to be any stronger than the built-in, but I would like it to be correlated, meaning if the content hasn't actually changed, or has changed and then changed back, it will have the same ETag even though the last-mod time is different. I'm not sure exactly what you mean by how I would implement it. In terms of generating the ETag values? For true static content, I would just hash the file. For PHP, for instance, I would filter it through `php -w` first, and hash the result. Like I said, I'm not sure exactly how I will store the generated values, it depends on how I'm actually getting the values in the headers. I would use either a cron job or a publishing-script to update the stored ETags. I have done this before in PHP, but I'd hate to have to serve static content through a wrapper PHP script just to put an ETag header in there. Thanks, -Brian -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://keys.gnupg.net - 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 check out http://httpd.apache.org/docs/2.0/mod/core.html#fileetag If you can't get what you want with that, my personal opinion is that the performance gained by your request would not justify the amount of time required to develop it. Thanks for the reference. The FileEtag directive is not as strong as what I'm looking for. I understand your sentiment about it not being worth the effort: but development effort is temporary, performance improvements are forever =). -Brian -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://keys.gnupg.net - 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 Of course performance is everything. Every time a user requests a resource, this is what you want in your proposed scenario: calculate
Re: [us...@httpd] mod_php script 'queue'
On Fri, Mar 12, 2010 at 9:36 AM, Reese howel...@inkworkswell.com wrote: On 12-Mar-10 11:31, Nilesh Govindarajan wrote: On Fri, Mar 12, 2010 at 6:49 PM, Bruno - e-comBR br...@e-combr.com.br wrote: It's causing a little throuble for me. When a PHP script generates a bigger report(taking about ten minutes or more), the user seems to be impatient. They're doing refreshs on the page. So, for each refresh apache is queuing a new script, and just begin running this when the queue is empty again. What do you suggest me? Thank you, Bruno Moreira Guedes I don't use mod_php, so don't know about its behavior. But I recommend you inform the users that the report can take upto ten minutes to generate and to be patient. That's the only solution I see. Else, if you can make the PHP script 'smart' in some way so that a popup or other visual indicator will give constant, visual feedback on the progress of the request. With a Cancel button that functions to kill the original request while blocking page refreshes. They can start over from scratch if they like. Reese - 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 Is there any way to cache the report? Maybe for that specific page (or the reports pages in general) you should institute a process whereby the webpage doesn't run the report itself but acts an an interface to a CLI task that generates the report. When you hit the webpage, it attempts to obtain a report lock, at which point the report begins to run, once the report is generated the lock can be released, and the web page can retrieve and report the results. The lock can be implemented any number of ways, I've done it in the past by simply touching and then deleting a file in the /tmp folder. To eventually ensure the user sees the report when it's done being generated, you could do some fancy Keep-alive with the http request, or just have some javascript on the page that automatically reloads it, and upon reload the script will check to see if there's a report built for that user, otherwise it checks to see if there's a lock. If there's a lock, it stops and waits to try again soon. If there is no lock, it starts a new report. Just some thoughts! Good luck with your problem, I don't think it's really an apache problem.
Re: [us...@httpd] can .htaccess make url better ?
On Mon, Mar 8, 2010 at 6:10 AM, Rich Bowen rbo...@rcbowen.com wrote: On Mar 8, 2010, at 4:15 AM, J. Bakshi wrote: Hello list, the click enlarge facility of an image gallery generates the links in a very ugly manner, like http://192.168.1.1/reifenqualitaet/index.php?eID=tx_cms_showpicfile=uploads/tx_reifenqualitaetimage/image-227X227_02.jpgbodyTag= bodywrap=%20|%20md5=9021563e8e2c9efadb629ddd197f22bf Is it somehow possible to generate the link little nicer by the help of .htaccess ? It is possible, using mod_rewrite, to make most URLs look different. One person's notion of nice may be different from another. I would, however, recommend that you ask this question of users of this particular image gallery software, as they very likely have a standard way of doing what you're trying to do. Failing that, I would suggest that you look at the mod_rewrite docs ( http://httpd.apache.org/docs/trunk/rewrite/ and http://wiki.apache.org/httpd/Rewrite) and see if there's something there that does what you need. Also, note that .htaccess files are merely one of the places that you can put configuration directives. When possible, you should try to put directives in the server configuration file rather than in .htaccess files. -- Rich Bowen rbo...@apache.org Hey Rich, and anybody else who knows about this, what you've just said touches on a question I've been wondering about: a few folks at work have always told me that .htaccess was a really slow way to load configuration because it needs to be checked per directory, as opposed to the global configuration in httpd.conf or whatever that can be cached for the whole webserver. How true is this really? I've worked on a couple of high-load high-availability webservers and we've never made a point of putting general site configuration and rewrite rules in the httpd.conf file, using .htaccess in the site root instead.. Having the ability to modify .htaccess without needing to restart the web-servers is nice but certainly not essential, we generally restart the webservers anyway when we make changes to the site in order to clear the op-code cache. I'm wondering though if we could retire a server and still support the same load, or at least see performance increases with a little jiggering of the configuration.. I guess the way to test this would be to just do it and see the results, I'll let you know what I find out, but hearing about actual experiences from anybody else would be nice too.
Re: [us...@httpd] Apache 1.3 OS X 10.4 help
On Wed, Feb 24, 2010 at 3:26 AM, Rupert Reid isingl...@madasafish.comwrote: On 23 Feb 2010, at 21:43, Daniel Reinhardt wrote: -- From: Rupert Reid isingl...@madasafish.com Sent: 23 February, 2010 18:27 To: users@httpd.apache.org Subject: Re: [us...@httpd] Apache 1.3 OS X 10.4 help On 18 Feb 2010, at 20:12, Daniel Reinhardt wrote: -- From: Rupert Reid isingl...@madasafish.com Sent: 17 February, 2010 16:04 To: users@httpd.apache.org Subject: [us...@httpd] Apache 1.3 OS X 10.4 help Hello, I am new to this but hope that you can help me. I have 2 virtual domain websites published at http:// 80.189.101.120/isinglive/ and http://80.189.101.120/cantoenvivo/ respectively. The following domains: http://isinglive.co.uk and http:// cantoenvivo.com are respectively forwarded to the above url's using my hosts framed web forwarding. For example when browser clicks on page http://80.189.101.120/isinglive/rosario.php the browser url bar will show http:// isinglive.co.uk. What I want to achieve is that when a browser clicks on http:// 80.189.101.120/isinglive/rosario.php, I want apache to send http:// isinglive.co.uk/rosario.php to the browser (not the former) or if http://80.189.101.120/cantoenvivo/filosofia.php is clicked show http://cantoenvivo.com/filosofia.php. How can I get apache to do dynamically this dynamically for each virtual domain? It is really important for me that the URL as described is sent to the browser - without it browsers cannot bookmark pages. If there is any more information that you need to help with this please let me know and i will post it. Thanks Rupert Never b sharp, never b flat, always b natural. - 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 Actually, What you are wanting is already being done. I just tried it, and it displays as you wish. Thanks, Daniel - 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 Hello Daniel, You are correct. The browser displays only http://isinglive.co.uk for each and every page and any page can be bookmarked and returned to using that bookmak. Hoowever, all bookmarked pages have the same address: http:// isinglive.co.uk meaning that only pne page from this site can be bookmarked at a time. If an attempt to bookmark a second page with the same browser is made then the current bookmarked page will be replaced by the new bookmarked page because they have the same name: http://isinglive.co.uk. meaning that only pne page from this site can be bookmarked at a time. What I would prefer is that the full URL is displayed in the browser so that pages can be differentiated. How can I do this? Thanks Rupert Never b sharp, never b flat, alway's b natural - 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 Rupert, This is already being done. I bookmarked like 5 pages, and all go to their respective targets. Thanks, Daniel - 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 Thanks Daniel, It must be IE that is the problem. I will try with other browsers when I get the chance. Rupert Never b sharp, never b flat, alway's b natural - 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
Re: [us...@httpd] Apache 1.3 OS X 10.4 help
On Wed, Feb 24, 2010 at 5:20 PM, Daniel Reinhardt crypto...@cryptodan.netwrote: -- From: Jonathan Zuckerman j.zucker...@gmail.com Sent: 24 February, 2010 21:08 To: users@httpd.apache.org Subject: Re: [us...@httpd] Apache 1.3 OS X 10.4 help On Wed, Feb 24, 2010 at 3:26 AM, Rupert Reid isingl...@madasafish.com wrote: On 23 Feb 2010, at 21:43, Daniel Reinhardt wrote: -- From: Rupert Reid isingl...@madasafish.com Sent: 23 February, 2010 18:27 To: users@httpd.apache.org Subject: Re: [us...@httpd] Apache 1.3 OS X 10.4 help On 18 Feb 2010, at 20:12, Daniel Reinhardt wrote: -- From: Rupert Reid isingl...@madasafish.com Sent: 17 February, 2010 16:04 To: users@httpd.apache.org Subject: [us...@httpd] Apache 1.3 OS X 10.4 help Hello, I am new to this but hope that you can help me. I have 2 virtual domain websites published at http:// 80.189.101.120/isinglive/ and http://80.189.101.120/cantoenvivo/ respectively. The following domains: http://isinglive.co.uk and http:// cantoenvivo.com are respectively forwarded to the above url's using my hosts framed web forwarding. For example when browser clicks on page http://80.189.101.120/isinglive/rosario.php the browser url bar will show http:// isinglive.co.uk. What I want to achieve is that when a browser clicks on http:// 80.189.101.120/isinglive/rosario.php, I want apache to send http:// isinglive.co.uk/rosario.php to the browser (not the former) or if http://80.189.101.120/cantoenvivo/filosofia.php is clicked show http://cantoenvivo.com/filosofia.php. How can I get apache to do dynamically this dynamically for each virtual domain? It is really important for me that the URL as described is sent to the browser - without it browsers cannot bookmark pages. If there is any more information that you need to help with this please let me know and i will post it. Thanks Rupert Never b sharp, never b flat, always b natural. - 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 Actually, What you are wanting is already being done. I just tried it, and it displays as you wish. Thanks, Daniel - 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 Hello Daniel, You are correct. The browser displays only http://isinglive.co.uk for each and every page and any page can be bookmarked and returned to using that bookmak. Hoowever, all bookmarked pages have the same address: http:// isinglive.co.uk meaning that only pne page from this site can be bookmarked at a time. If an attempt to bookmark a second page with the same browser is made then the current bookmarked page will be replaced by the new bookmarked page because they have the same name: http://isinglive.co.uk. meaning that only pne page from this site can be bookmarked at a time. What I would prefer is that the full URL is displayed in the browser so that pages can be differentiated. How can I do this? Thanks Rupert Never b sharp, never b flat, alway's b natural - 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 Rupert, This is already being done. I bookmarked like 5 pages, and all go to their respective targets. Thanks, Daniel - 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 Thanks Daniel, It must be IE that is the problem. I will try with other browsers when I get the chance. Rupert Never b sharp, never b flat, alway's b natural
Re: [us...@httpd] Porting Apache 2.0.63 to Cygwin 1.7
How do you know it's not running? What port is it listening on? On Saturday, February 20, 2010, Paul McFerrin pmcfer...@columbus.rr.com wrote: I'm trying to port Apache 2.0.63 to Cygwin 1.7 to no avail. Apache will start but immediately stops. The code compiles cleanly and error_log does not show anything other that an ungraceful shutdown due to a PID file in place. When I execute apachectl, I get the following: $ apachectl restart httpd not running, trying to start It was built using: ./configure --prefix=/usr/local/apache2 make install Does anyone else have a ideas on what is going on??? - 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 - 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: [us...@httpd] Disable QOS driver on Win 2008
MY ADVICE IS TO STOP-USING WINDOWS HWAA /top-posting/retarded In seriousness, after a brief google search it seems that QoS is something that windows networks use to prioritize packet delivery, I can see why this might have deleterious effects on a web-server. I found these instructions for disabling it: http://forums.techarena.in/networking-security/1231039.htm On Thu, Feb 18, 2010 at 4:47 AM, Bill Gudgeon w...@st-andrews.ac.uk wrote: Hi, Very new to Apache, just starting to look at it today actually. Have downloaded 2.2.14 and installed to a freshly installed Windows 2008 Standard server. All OK thus far. It works message came up. I noted in the documentation the suggestion to disable the QOS network driver but am unsure where to do this. I have googled it and seen various suggestions about Group Policy settings or disabling the QOS service, but I don't seem to have a service with any name relating to QOS. Is it just a case of unchecking the QOS Packet Scheduler item in the LAN connection properties dialog. Thanks Bill - 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: [us...@httpd] Rewrite Voodoo pt. 2
On Tue, Jan 19, 2010 at 2:42 PM, Peter J Milanese pmilan...@nypl.orgwrote: As stated previously, RewriteRule is NOT the proper directive, and does not see the hostname. RewriteCond will act as a filter for the hostname. RewriteRule will not accomplish what you want, or whatever we 'think' you want. It does not know anything about hostname. P - Original Message - From: Reese [howel...@inkworkswell.com] Sent: 01/19/2010 05:24 PM EST To: users@httpd.apache.org Subject: Re: [us...@httpd] Rewrite Voodoo pt. 2 On 19-Jan-10 17:16, Peter J Milanese wrote: Have to throw in something here. Tom gave you the right answers. What exactly is 'one of those'? RTFM is not always the right answer to the question asked. The list is comprised of good questions and answers. Not part time employees :) My efforts are unpaid as well, you would be correct to think of this as my foaf effort for a good cause. My attempt was: RewriteEngine On RewriteRule ^(www\.)?domain\.ext/subdomain/(.*)$ subdomain\.domain\.ext/$2 [R=301,L] I now think this would be better: RewriteEngine On RewriteRule ^domain\.ext/subdomain/(.*)$ subdomain\.domain\.ext/$2 [R=301,L] but I don't know why. Or if it will work. Or why. I'd like to know why. Reese - 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 - 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 I'm pretty sure nobody wants this to turn into a mod_rewrite solve-it-for-me mailing list.
Re: [us...@httpd] Re: Mod rewrite
On Sat, Jan 9, 2010 at 9:48 PM, pkm2112 pkm2...@singnet.com.sg wrote: Ok let me explain From http://clc.ncs.com/inventoryappl, I'm redirected to http://server1.ncs.com/inventoryappl. Instead of displaying http://server1.ncs.com/inventoryappl, want to display http://s1.ncs.com/inventoryappl Can it be done with RewriteRule. I'm new to apache server. Please help rgds PKM --- Nicholas Sherlock n.sherl...@gmail.com wrote: On 9/01/2010 8:07 p.m., pkm2112 wrote: Hello experts, Need help to mask url. I understand it can be done using RewriteRule in httpd.conf file. Can I display http://server1.ncs.com/inventoryappl as http://s1.ncs.com/inventoryappl If this is on the same server, just add a ServerAlias entry for s1 to your server1 host definition. Cheers, Nicholas Sherlock Needs more explanation still, when you said you want to display do you mean you want the browser to render the page at a different URL as the one in the URL bar, or you want the URL bar to actually change and redirect to the second URL?
Re: [us...@httpd] Trouble installing on windows 7
On Thu, Jan 7, 2010 at 5:13 AM, Boyle Owen owen.bo...@six-group.com wrote: -Original Message- From: William Foster [mailto:willia...@gmail.com] Sent: Thursday, January 07, 2010 5:07 AM To: users@httpd.apache.org; comp...@roadrunner.com Subject: Re: [us...@httpd] Trouble installing on windows 7 Hi Wes, Well it was a free copy, so no money to Microsoft on this one. I figured out the issue. There was a hidden dialog underneath the install shield dialog asking if I wanted to grant permission. Once I discovered that and granted permission it installed fine. This sounds like User Account Control - it appeared with Vista. You're going to get very familiar with it if you are maintaining a Windows system ;-) http://en.wikipedia.org/wiki/User_Account_Control Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. Now I'm facing another issue. I can get to localhost:80 but when I try to access from another computer inside the router, it does not work. I wonder if port 80 is being blocked by default in Windows 7? Thanks. -William On Wed, Jan 6, 2010 at 7:52 PM, Wesley Stupar comp...@roadrunner.com wrote: Hi William, Sorry to say, I cannot help on this one. But for what little solace it is, I believe that Windows 7 is a sham and an affront to the user community. It is simply an attempt to gather more money into the Microsoft coffers. Have you considered Linux? Wes Stupar -Original Message- From: William Foster [mailto:willia...@gmail.com] Sent: Wednesday, January 06, 2010 5:54 PM To: users@httpd.apache.org Subject: [us...@httpd] Trouble installing on windows 7 Hi, I am trying to install Apache HTTP Server v2.2.14 on a machine recently upgraded to Windows 7. Apache worked fine under Windows XP, but when I go to install this in Windows 7, the install script appears to hang. In the install wizard dialog it states: Installing Apache HTTP Server 2.2.14 The program features you selected are being installed. Please wait while the Installation Wizard installs Apache HTTP Server 2.2.14. This may take several minutes. Status: progress bar with thin sliver at left edge that makes no progress I tried with and without openSSL support, both fail the same way. Is this install script known to work on Windows 7? If so, how do I debug what is going wrong? Thanks. -William - 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 - 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 - 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 This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. 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. The sender's company reserves the right to monitor all e-mail communications through their networks. - 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 should probably let this rest but I can't resist: and these comments of yours are just as trollish as his, please take your girly bitch sessions OFF this list, we do not care for it. Res I wanted to thank you for your statement, I've been trying to convince my girlfriend that bitch sessions are intrinsically girly and this testimony from an expert on apache will go
Re: [us...@httpd] Code coverage while running web server
On Sun, Dec 20, 2009 at 12:37 AM, Krist van Besien krist.vanbes...@gmail.com wrote: On Sat, Dec 19, 2009 at 1:30 AM, Guruprasad JG guruprasad...@gmail.com wrote: I am referring to the Apache code written in C. I would like to see if all the paths are exercised for - request processing, resource management, connection pooling, and configuration directives of the apache core. This would be more like functional testing of apache. I think you'll have to explain to us what you exactly mean with checking that all the paths are exercised. I have no clue how to exercise paths in any context, and I do consider my knowledge of the English language quite substantial. Maybe you should rephrase your question. If you just want to know what goes on inside Apache when a request is processed than you can ofcourse run it in a debugger. Will be slow, though. Make sure the timeout in whatever client you use is high enough. Krist -- krist.vanbes...@gmail.com kr...@vanbesien.org Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? - 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 I believe he is asking for a unit testing suite for Apache, to create scenarios that execute every line of code in the apache webserver so that they can verify that everything works properly, I think as a request it's pretty ambitious... - 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: [us...@httpd] Code coverage while running web server
On Sun, Dec 20, 2009 at 1:42 AM, Jonathan Zuckerman j.zucker...@gmail.com wrote: On Sun, Dec 20, 2009 at 12:37 AM, Krist van Besien krist.vanbes...@gmail.com wrote: On Sat, Dec 19, 2009 at 1:30 AM, Guruprasad JG guruprasad...@gmail.com wrote: I am referring to the Apache code written in C. I would like to see if all the paths are exercised for - request processing, resource management, connection pooling, and configuration directives of the apache core. This would be more like functional testing of apache. I think you'll have to explain to us what you exactly mean with checking that all the paths are exercised. I have no clue how to exercise paths in any context, and I do consider my knowledge of the English language quite substantial. Maybe you should rephrase your question. If you just want to know what goes on inside Apache when a request is processed than you can ofcourse run it in a debugger. Will be slow, though. Make sure the timeout in whatever client you use is high enough. Krist -- krist.vanbes...@gmail.com kr...@vanbesien.org Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? - 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 I believe he is asking for a unit testing suite for Apache, to create scenarios that execute every line of code in the apache webserver so that they can verify that everything works properly, I think as a request it's pretty ambitious... I should say, as a request *to the apache users group*.. there's probably a mailing list for contributors to the project who actually write C code, where this question might make more sense. - 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: [us...@httpd] Code coverage while running web server
On Thu, Dec 17, 2009 at 9:49 PM, Guruprasad JG guruprasad...@gmail.com wrote: I am working on a project which requires running httpd web server. I need to ensure that all the important code paths are covered while the web server is running. I looked around for test scripts which can help in doing that, but couldn't find any. Are there any test suite or bunch of functional test scripts which the developers might use to test the web server before official releases ? Thanks a ton ! Guruprasad When you talk about code paths, it's meaningless without specifying what type of code you're using (language). I'm familiar with Java and PHP and I've heard of several unit testing suites for each. But those would be questions for a different list...since Apache is an http server, you might just be talking about checking URLs. In that case I doubt any such script exists, as the complex part would be defining the ontology of your website's valid locations. The rest is pretty trivial, loop through the urls, make an http request with curl or wget or something for each of them, and scrub the response for the HTTP status code. - 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: [us...@httpd] More RewriteRule issues ..
On Tue, Nov 24, 2009 at 12:38 AM, Boyle Owen owen.bo...@six-group.com wrote: -Original Message- From: bearsfoot [mailto:adam.p.reyno...@gmail.com] Sent: Tuesday, November 24, 2009 3:24 AM To: users@httpd.apache.org Subject: [us...@httpd] More RewriteRule issues .. Hi, I have the following rules in my .htaccess. RewriteRule products/(.*)/ /index.php?view=productsbrand=$1 [L] RewriteRule products/(.*)/(.*)/ /index.php?view=productdetailbrand=$1id=$2 [L] These are the urls the users see: http://www.mysite.com/products/product-name/ http://www.mysite.com/products/product-name/1/ These are the pages the users see: http://www.mysite.com/index.php?view=productsbrand=product-name http://www.mysite.com/index.php?view=productdetailbrand=produ ct-nameid=1 I want to add another rule rewrites the folowing url. http://www.mysite.com/products/product-name/?filter=10 to http://www.mysite.com/index.php?view=productsbrand=product-na mefilter=10 Can someone please show me how to implement this rule without interferring with the existing second rule ? What did you try yourself already? What results did you get? What problems did you encounter? Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. Hint: A query-string is NOT part of the URL and so is not immediately visible to a RewriteRule. For further details, check out: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule (and read the grey box what is matched?) http://wiki.apache.org/httpd/RewriteQueryString Thanks, Adam -- View this message in context: http://old.nabble.com/More-RewriteRule-issues-..-tp26489575p26 489575.html Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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 This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. 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. The sender's company reserves the right to monitor all e-mail communications through their networks. - 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 This is an end-user to end-user help list for the Apache webserver, if the listserv description was accurate, we would help you get mod_rewrite *installed* and stop right there. It sounds like what you really are asking for help with is regular expressions - which we're all happy to help with, but we'll need a little bit more info and some re-assurance that you're going far enough by reading the manual and trying to help yourself. Specifically addressing your problem, I think you're interested in the flag QSA (query-string all). Check it out in the link that Owen directed you to, or this site which has a nicely condensed version: http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet/ - 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: [us...@httpd] Directory Traversal Vulnerability
On Tue, Nov 24, 2009 at 11:51 AM, Steven Backus bac...@whimsy.med.utah.edu wrote: Our crack security team scanned my web server with QualysGuard Enterprise. It found a Gneric Web Server Directory Traversal Vulnerability. I'm at a loss to fix this, httpd -v returns: Server version: Apache/2.2.3 Server built: Nov 10 2009 09:06:57 I'm on RHEL 5 with current patches. Can anyone point me in the direction of a fix? Thanks, Steve -- Steven J. Backus Computer Specialist University of Utah E-Mail: steven.bac...@utah.edu Genetic Epidemiology Alternate: bac...@math.utah.edu 391 Chipeta Way -- Suite D Office: 801.587.9308 Salt Lake City, UT 84108-1266 http://www.math.utah.edu/~backus - 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 http://tinyurl.com/ylzn5g8 third link from the top bro - 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: [us...@httpd]
On Wed, Nov 11, 2009 at 1:56 PM, Brian Mearns mearn...@gmail.com wrote: cookies. cookies. COOKIES. For god sake just listen to somebody. The only way to achieve what you want is to send data to the client and get them to send it back. That's a cookie. What you're looking for is exactly what Google Analytics does, which I mentioned early yesterday. Hit vs. Unique visitors, they even have a graph to show you this exact statistic. Regarding this little gem: Then it becomes impossible to know if a page REALLY exists or if my emails are going where intended, or coming from where stated... so am I to assume that traffic addressing in general has FAILED?. No, like I said you cannot be sure of where traffic is coming from or who is getting it with IP, TCP, or HTTP. That's exactly right. In general, we can take it for granted that messages most likely go where intended and most likely come from where they claim to, but this is definitely open to attack and require stronger protocols if you absolutely need to be sure of it. When you search Google, you can feel pretty confident that the results really come from Google because nobody has much to gain by sneaking in their own results. When you connect to your bank's website, it's a much different story and you shouldn't take anything for granted: you need additional protection outside of these three protocols. TLS and SSL use cryptographic techniques to authenticate end points in the communication and to encrypt and sign the data being transmitted so that you can verify it was not tampered with along the way. If you want more information on how to use cookies for what you're doing, I'd be happy to help, and we can probably take the discussion off-list. If you're not willing to use cookies, you can encode it in the URL, and I can help you with that as well. But either way, you are relying on the user to send the information back in tact. If you can't trust your end users to do that and it's important that you know for sure, you will need TLS or SSL. I can hep you get started with these, but there are others on this list with much more knowledge on the subject than myself. -Brian On Wed, Nov 11, 2009 at 4:28 PM, Stephen Love stephenl...@juno.com wrote: Hmmm... somewhat new to the inner details... all I know is what I research on my own... have not had a book-learning course on this... but TLS... what is that? AND... I simply want a list of source identifiers of incoming requests so that I can check each new one for duplicate incoming source... just a HITS vs UNIQUE VISITORS. I want NOTHING MORE. I can do add'l tracking based on time, date, etc, on my own. Just site usage statistics. See us online at http://www.LOVEnCompany.com. -- Original Message -- From: Brian Mearns mearn...@gmail.com To: users@httpd.apache.org Subject: Re: [us...@httpd] Date: Tue, 10 Nov 2009 22:34:24 -0500 On Tue, Nov 10, 2009 at 6:37 PM, Eric Covener cove...@gmail.com wrote: On Tue, Nov 10, 2009 at 6:20 PM, Stephen Love stephenl...@juno.com wrote: So what you are telling me is that there IS no REAL 2-way handshaking going on. Then we've lost ALL hope of security. What's REAL in this context? It's not authenticated and doesn't result in some session establishment unless you configure your application to require/manage such a thing? -- Eric Covener cove...@gmail.com [clip] Yes, why don't you tell us exactly what you want to do, what's your end goal? Visitor stats? Geographic locating? Authentication of a real-world identity? There's a lot of very bright and very knowledgeable people on this list, so if there's any way at all to do what you want, then there is a very good chance that somebody here will be able to tell you. It just might not be done the way you think it should be. As many of us have said, TCP is an end to end protocol. And in fact, it is stateful, so you can send messages back and forth between the two end points for as long as the connection is open. There is a handshake that goes on between the two end points to setup this connection, but this is not any sort of real authentication process that confirms the identity of either end. What TCP gets you is pretty good confidence that you are talking to the same person you were when you started the conversation, but even that confidence is really only upheld in the absence of active attacks like IP spoofing, and it provides absolutely no confidence that there aren't other people listening to the conversation, and potentially even participating in the conversation. If you're looking for security: like making sure no one else is listening to the conversation, no one else is modifying the conversation data, and or making sure that the person on the other end is who they claim to be...then you're going to need a much more sophisticated protocol than TCP, IP, or HTTP. SSL/TLS provides all these things, with the latest TLS
Re: [us...@httpd] RE: httaccess stopped working update
-Original Message- From: Marc Fromm Sent: Sunday, October 25, 2009 7:48 PM To: users@httpd.apache.org Subject: [us...@httpd] httaccess stopped working I have used this htaccess file for quite some time now and it worked, only allowing access to specific ip addressess. For some reason the htaccess is not blocking ip addresses outside the ones specified. I have 'x'ed out the ip addresses and changed the user user name for this email. AuthType Basic AuthName Outside Access. AuthUserfile /etc/htpasswd require user user_name #require valid-user Satisfy All Limit GET POST order deny,allow deny from all allow from xxx.xxx.216 allow from xxx.xxx.42 allow from xxx.xxx.43 allow from xxx.xxx.188 allow from xxx.xxx.189 /Limit Any ideas on what could have changed to so the deny from all is no longer working? Users are still asked for a username and password. Some posts state to avoid using LIMIT. If that is correct then what is the better method? Thanks On Sun, Oct 25, 2009 at 9:22 PM, Marc Fromm marc.fr...@wwu.edu wrote: Update on my htaccess problem. Recently I set up a spider trap which required placing an htaccess file on the www/html directory. The htaccess file listed in my first email is a sub directory of html/. The tutorial had me create this htaccess file. Is the Files * . . . /Files section over ruling the htaccess file in the sub directory? # Block bad-bots using lines written by bad_bot.pl script above SetEnvIf Request_URI ^(/403.*\.htm|/robots\.txt|/file_instead_of_what_they_want\.htm)$ allowsome Files * order allow,deny allow from all deny from env=getout /Files You specifically said: for ALL files, allow from ALL except.. deny from env=getout. This will absolutely override .htaccess rules set in a higher directory, that's almost the whole point of htaccess. - 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: [us...@httpd] GET request on a directory
On Saturday, October 24, 2009, Doug McNutt dougl...@macnauchtan.com wrote: On Fri, Oct 23, 2009 at 12:30 PM, I wrote: GET requests which would otherwise look for an index.html file but are set up with something like this: HTTP://domain.com/somedirectory/?C=xx;O=yy seem to reply with a formatted list of directory contents. Can someone point me to some documentation for that? Googling for ?C=M;O=A gets hundreds of examples but no docs. At 12:45 -0700 10/23/09, Jonathan Zuckerman wrote: Wow, don't even know where to begin. We're all happy to help but this question is nonsensical, can you be any more specific? This miiight be what you're looking for: http://httpd.apache.org/docs/2.0/mod/mod_dir.html That was the hint I needed. It turns out that http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html has this to say: * C=N sorts the directory by file name * C=M sorts the directory by last-modified date, then file name * C=S sorts the directory by size, then file name * C=D sorts the directory by description, then file name * O=A sorts the listing in Ascending Order * O=D sorts the listing in Descending Order * F=0 formats the listing as a simple list (not FancyIndexed) * F=1 formats the listing as a FancyIndexed list * F=2 formats the listing as an HTMLTable FancyIndexed list * V=0 disables version sorting * V=1 enables version sorting * P=pattern lists only files matching the given pattern The summary seems to say that one can have mod_dir OR mod_autoindex but not both. But it also says that use of index.html is controlled by mod_dir. I need to get read access to the config file for my hosting service and that might be difficult. A GET aimed at a directory does deliver my own index.html if it's there. But sometimes I don't want to bother with that and apache, as installed by pair.com, does deliver a list of files that a visitor can click on. Is it _dir or _autoindex is the question I shall ask. Thanks for the helping hand. -- -- If it's not on fire it's a software problem. -- - 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 And I learned something too, I hadn't realized you could pass querystring parameters to order results in the automatic index, and your original question actually makes a lot of sense now - 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: [us...@httpd] GET request on a directory
On Fri, Oct 23, 2009 at 12:30 PM, Doug McNutt dougl...@macnauchtan.com wrote: GET requests which would otherwise look for an index.html file but are set up with something like this: HTTP://domain.com/somedirectory/?C=xx;O=yy seem to reply with a formatted list of directory contents. Can someone point me to some documentation for that? Googling for ?C=M;O=a gets hundreds of examples but no docs. -- -- So are we going to celebrate the start of a new decade at the end of this year? Or do the tens start at in January 2011? -- - 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 Wow, don't even know where to begin. We're all happy to help but this question is nonsensical, can you be any more specific? This miiight be what you're looking for: http://httpd.apache.org/docs/2.0/mod/mod_dir.html - 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: [us...@httpd] Conditional .htaccess
On Mon, Oct 19, 2009 at 3:17 PM, Scott Haneda talkli...@newgeo.com wrote: Is it possible to have .htacess values be conditional in any way. For example: if (my ip address is accessing the site) some apache directive here end if -- Scott * If you contact me off list replace talklists@ with scott@ * - 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 .htaccess values could be more specific... .htaccess is a file which allows you to do many types of apache configuration dynamically in a directory without having to restart the webserver. If you're talking about URL rewriting, here's somewhere to start (replace the 2.2 with whatever major.minor version of apache you're using): http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond - 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: [us...@httpd] Restarting Individual Sites
On Wed, Oct 14, 2009 at 11:47 AM, Chance Ervin cer...@intersectconsult.com wrote: d on the Apache service. It seems that an edit to the config file with a graceful restart of Apache may do the trick but that introduces risk that a mistake was made in the file and only found after trying to restart. Any help being guided in the right direction would be appreciated. you can run apachectl configtest to determine if there are any errors in the configuration before restarting apache. I'm not aware of any way for an apache web server which is hosting multiple sites to restart for just a single site. What you can do is make configuration changes within the virtual host definition of the site you're interested in altering. - 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: [us...@httpd] how to avoid duplicating the document root in vhost conf files?
On Tue, Oct 6, 2009 at 11:37 AM, Brolin Empey bro...@brolin.be wrote: Hello list, Here is one of my vhost conf files: [bro...@cowboy] [0] [1] ~/ $ cat /etc/apache2/sites-available/aidsorphanage.org VirtualHost *:80 ServerAdmin bro...@techsol.ca ServerName aidsorphanage.org ServerAlias www.aidsorphanage.org aidsorphonage.org www.aidsorphonage.org DocumentRoot /var/www/aidsorphanage.org/ # FIXME: How can I avoid duplicating ${DOCUMENT_ROOT}? # - brolin, 2009-09-15 Directory /var/www/aidsorphanage.org/logs/ Order Deny,Allow Deny from All /Directory Directory / Options FollowSymLinks AllowOverride All /Directory ErrorLog /var/www/aidsorphanage.org/logs/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/www/aidsorphanage.org/logs/access.log combined /VirtualHost [bro...@cowboy] [0] [2] ~/ How can I avoid duplicating the document root after it is declared with the DocumentRoot directive? In this example, the document root is duplicated thrice. Duplication is bad. I am using apache2 version 2.2.11-2ubuntu2.3. Thanks, Brolin -- Sometimes I forget how to do small talk: http://xkcd.com/222/ “If you have to ask why, you’re not a member of the intended audience.” — Bob Zimbinski, http://webpages.mr.net/bobz/ttyquake/ - 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 Am I missing something? I only see the DocumentRoot declared once in your example - 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: [us...@httpd] how to avoid duplicating the document root in vhost conf files?
On Tue, Oct 6, 2009 at 12:30 PM, Brolin Empey bro...@brolin.be wrote: 2009/10/6 Jonathan Zuckerman j.zucker...@gmail.com: Am I missing something? I only see the DocumentRoot declared once in your example Yes, there is only 1 DocumentRoot directive, but the “/var/www/aidsorphanage.org/” part of the /value/ of the DocumentRoot directive is duplicated thrice. How can I avoid duplicating this common part of the paths in the vhost conf file? - 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 Ah I see... I'm a software engineer too so I appreciate trying to encapsulate often-used values but I'd say this might be one of those battles it wouldn't kill you to forfeit. That said, have you tried using relative paths for the error log path declarations? Or (my preferred solution) put them outside the document root; why bother putting them in the doc root and then making a directory override to disallow outside access to them when the simpler solution would be to just put them outside the web root and never ever worry about access rules. - 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: [us...@httpd] mod_rewrite : Can a space in a URL be preserved ?
On Tue, Oct 6, 2009 at 3:25 PM, rank1see...@gmail.com wrote: Maybe if Daniel would edit Apache's source... :))) Then once his custom Apache server is up and running, should notify us about it's IP. So we could have a fun with it ;) - Original Message - From: Dick Davies rasput...@hellooperator.net To: users@httpd.apache.org Date: Tue, 6 Oct 2009 16:05:36 +0100 Subject: Re: [us...@httpd] mod_rewrite : Can a space in a URL be preserved ? Spaces aren't valid characters in urls, period. As you say, it URL encodes to %20, and I can't imagine any bits of apache (or any other server) are going to send a space instead, because that breaks the HTTP spec. On Tue, Oct 6, 2009 at 3:59 PM, ABAPGUY abap...@yahoo.com wrote: Hi Apache experts, I am using Apache 2.0.59 as a Reverse Proxy using mod_rewrite and mod_proxy . I have a downstream J2EE server that is creating URLs with a space in them . How can I use mod_rewrite (which sees %20) to write the space ..instead of %20 ? Regards Daniel - 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 Heh. Daniel, if the %20 really bugs you, how do you feel about the + sign? I don't think it's part of the HTTP spec per-se but it has been one of the W3C's recommendations: http://www.w3.org/Addressing/URL/4_URI_Recommentations.html#z5 It may not look as nice to you as a clear space but every webserver I've ever dealt with respects the recommendation. - 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: [us...@httpd] apache redirection does not work
On Thu, Oct 1, 2009 at 9:37 AM, Bob Ionescu bobsie...@googlemail.com wrote: 2009/10/1 Sharjeel Tariq sharjeel.tar...@gmail.com: RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule ^/(.*)$ http://www.example.com/$1 [L,R] The above rule works for all urls except when I have urls like http://example.com/news/headlines/more.jsp?content=20090624_075115_6540 Instead of redirecting the above url to http://www.example.com/news/headlines/more.jsp?content=20090624_075115_6540 It is redirecting it to home page of site with ?content=20090624_075115_6540 at the end http://www.example.com/index.jsp?content=20090624_075115_6540 Please enable a RewriteLog with Rewritelog logs/rewrite_log Rewriteloglevel 6 in your httpd.conf and post the result (may be as an attachment). Bob - 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 Try adding QSA to the flags at the end of the redirect. (Query-String All) - 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: [us...@httpd] Cache issues
On Fri, Sep 25, 2009 at 6:15 AM, Phil Pinkerton pcpinker...@gmail.com wrote: Anyone experience performance issues with regards to Apache cache ? From time to time we are experience access issues ( users accessing Subversion ) that seem to be due to an over loaded Apache cache. We suspect the cache because when we refresh (stop,start) the Apache server the problems goes away for a time. This happens so regularly we have set crontab to refresh every morning during our maintenance period. And this has reduced the number of problems. This is Apache 2.2.11 running on a Solaris Sparc server. Providing HTTPD services for or Subversion users, Any thoughts on managing Apache Cache ? -- The fundamental principle here is that the justification for a physical concept lies exclusively in its clear and unambiguous relation to the facts that it can be experienced AE Please Feed and Educate the Children... it's the least any of us can do. Is there anything at all in the error log to suggest it's the cache? I think that bouncing the web server affects a lot of other stuff besides the cache.. - 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: [us...@httpd] Cache issues
On Fri, Sep 25, 2009 at 10:54 AM, Phil Pinkerton pcpinker...@gmail.com wrote: On Fri, Sep 25, 2009 at 12:45 PM, Jonathan Zuckerman j.zucker...@gmail.com wrote: On Fri, Sep 25, 2009 at 6:15 AM, Phil Pinkerton pcpinker...@gmail.com wrote: Anyone experience performance issues with regards to Apache cache ? From time to time we are experience access issues ( users accessing Subversion ) that seem to be due to an over loaded Apache cache. We suspect the cache because when we refresh (stop,start) the Apache server the problems goes away for a time. This happens so regularly we have set crontab to refresh every morning during our maintenance period. And this has reduced the number of problems. This is Apache 2.2.11 running on a Solaris Sparc server. Providing HTTPD services for or Subversion users, Any thoughts on managing Apache Cache ? -- The fundamental principle here is that the justification for a physical concept lies exclusively in its clear and unambiguous relation to the facts that it can be experienced AE Please Feed and Educate the Children... it's the least any of us can do. Is there anything at all in the error log to suggest it's the cache? I think that bouncing the web server affects a lot of other stuff besides the cache.. Nothing in the logs tells us anything about why we get the Other error messages, but if it's not a cache problem (possibly related to LDAP), why would a recycle fix it? - 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 -- The fundamental principle here is that the justification for a physical concept lies exclusively in its clear and unambiguous relation to the facts that it can be experienced AE Please Feed and Educate the Children... it's the least any of us can do. When you restart the webserver every thread completes and stops handling requests, every process ends, _everything_ about the webserver stops and then starts again, this potentially affects more than just the files used by mod_cache. Have you looked at the diskspace used by mod_cache to see if there are any patterns to it (size, usage, whatever) when the webserver stops responding? How about monitoring the health of the box to see if anything else could be the issue (CPU pegged, RAM, disk..)? Anything at all in apache error logs. I'm sorry that I don't have more suggestions; mod_cache might indeed be the problem but from a troubleshooting standpoint it seems to me that you're narrowing down the possible causes just a bit too recklessly. - 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: [us...@httpd] How to stop webpage forwarding
On Thu, Sep 17, 2009 at 11:54 AM, Ralf W. mrsun2...@yahoo.de wrote: Hello group - I have found that somebody is pointing there webpage (domainname) to my own webpage. How can I prevent his? Thank you Ralf - 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 We had this issue at my previous employer... our attitude was simply, thanks for the free domain name. If they truly point their domain to your server, they have no control over the content. You could easily make special rules in your .htaccess to examine the server's environment variables and change behavior depending on it, but first ask yourself, what do you gain? - 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: [us...@httpd] .htaccess does not work
On Thu, Sep 10, 2009 at 8:56 AM, testwreq wreq testw...@gmail.com wrote: Hello, My goal is to password protect a few pages in one of the userdir (/home/users/vinda). And, I cannot get this to work. Any suggestions will be welcomed! Below is the configuration in my httpd.conf file: Directory /home/*/*/public_html Options -Indexes FollowSymLinks IncludesNoExec Options +ExecCGI DirectoryIndex index.html index.php index.htm AllowOverride AuthConfig Allow from all Order allow,deny AddType text/html .html AddOutputFilter INCLUDES .html /Directory I placed .htaccess in (/home/users/vinda/public_html/labs) because this is the directory I want to protect. Below are the contents of .htaccess and it has the .passwd file generated by htpasswd apache command. AuthUserFile /www/home/users/vinda/labs/.htpasswd AuthName Members Only AuthType Basic require user lab When I call the page with http://hostname/~vinda/labs, I get the box to enter the username and password but then I can never pass this. The error in the eerror log is: [debug] mod_auth_pgsql.c(774): [client 10.105.9.103] [mod_auth_pgsql.c] - missing configuration parameters [Thu Sep 10 10:35:32 2009] [error] [client 10.105.9.103] access to /~vinda/labs failed, reason: verification of user id 'lab' not configured Please advise. Am I missing any configuration? Thanks much:) A few thoughts: might need to put the .htaccess file that password protects all the contents of a directory _outside_ of that directory, since that file is required to determine where the authorized users data is stored, and you currently can't access it until you _are_ one of those authorized users... Also, really not a big deal but.. your subject implied that .htaccess is broken. Chances are quite good that it's simply your understanding of .htaccess which is flawed; everyone on this list is here because they're happy to try to help but it might be nice to approach the problem with the attitude I would really appreciate some help figuring your awesome free software out rather than Fix your shit. - 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: [us...@httpd] Redirection problem with dynamic url parameters
On Mon, Aug 10, 2009 at 8:51 AM, Campbell, Lancela...@illinois.edu wrote: https://illinois.edu/blog/view?blogId=291 To http://illinois.edu/db/view/291 I think you want something like this: RewriteRule ^blog/view\?blogId=(\d)+ http://illinois.edu/db/view/$1 [R=301] Totally untested, it's been awhile but I think the + quantifier means one or more of the preceeding - 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: [us...@httpd] Redirection problem with dynamic url parameters
On Mon, Aug 10, 2009 at 11:02 AM, Jonathan Zuckermanj.zucker...@gmail.com wrote: On Mon, Aug 10, 2009 at 8:51 AM, Campbell, Lancela...@illinois.edu wrote: https://illinois.edu/blog/view?blogId=291 To http://illinois.edu/db/view/291 I think you want something like this: RewriteRule ^blog/view\?blogId=(\d)+ http://illinois.edu/db/view/$1 [R=301] Totally untested, it's been awhile but I think the + quantifier means one or more of the preceeding Ah dammit, obvious mistake, this is better: RewriteRule ^blog/view\?blogId=(\d+) http://illinois.edu/db/view/$1 [R=301] - 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: [us...@httpd] redirect IE6 with mod_rewrite
On Mon, Aug 3, 2009 at 4:31 AM, Matus UHLAR - fantomasuh...@fantomas.sk wrote: On 02.08.09 17:38, MK wrote: I'm trying to redirect IE6 users to a special page using mod_rewrite, ... RewriteCond %{HTTP_USER_AGENT} .*Mozilla.* ... I've played around lots with the regex (^Mozilla.*, Mozilla, ^Mozilla, even .*), etc. but nothing works. many browsers advertise themselves as mozilla. Mozilla was originally internal codename od netscape navigator (or its engine?) and microsoft browsers use the name too. This way you won't redirect only IE6 but even newer IEs, real Mozilla browsers and possibly others... -- 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. He who laughs last thinks slowest. - 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 Indeed, try logging the server variables on your webpage on every browser you can think of and you'll see how they identify themselves, I personally would use this pattern to single out IE6: .*MSIE 6.* - 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: [us...@httpd] Slowness over internet after adding SSL.
On Mon, Aug 3, 2009 at 10:12 AM, Mike -- EMAIL IGNOREDm_d_berger_1...@yahoo.com wrote: I just deployed by web site modified so that some parts use SSL. On testing on my LAN, response is very fast. However testing with the internet, response is very slow, even for those parts of my web site that to not use SSL. I checked by temporarily switching back to the old configuration, and it was fast again. Any ideas? Thanks, Mike. - 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 SSL should go slower, but not on pages that don't use it. Are you absolutely certain that the pages that don't require SSL are not using it? - 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: [us...@httpd] SSLProtocol vs SSLCipherSuite
On Sun, Aug 2, 2009 at 6:24 AM, De Renderen...@gmail.com wrote: First time post. I am new to Apache, MySQL, and PHP. I've installed Apache (2.2.11), MySQL(5.1.36)and PHP(5.2.10) on my laptop (operating system: Windows XP Home Edition). I can see the Apache icon on the right lower corner, but when the mouse is moved to the icon, the prompt says: No services installed. Once I click the Apache icon, I open the Apache Monitor Window and can see a lot of services have started, including HTTP SSL and MySQ. I wrote a small Hello, World php file ending with .php, but I cannot see the Hello, World with FireFox. Could someone give me some hint what went wrong, please? Sincere thanks in advance. On Sat, Aug 1, 2009 at 5:57 PM, Matus UHLAR - fantomas uh...@fantomas.sk wrote: On 27.07.09 09:02, Capstone wrote: Specifically, will SSLCipherSuite directive take precedence over the SSLProtocol directive? no. If I have omitted the SSLProtocol directive entirely. But I have something like this in my SSLCipherSuite directive, SSLCipherSuite TLSv1:SSLv3:+HIGH:+MEDIUM:!LOW:!NULL Does this not allow any SSLv2 traffic to my server? it only disbles low ciphers. I think I also disable EXPORT ciphers... -- 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. A day without sunshine is like, night. - 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 Please start a new thread instead of of hijacking an old one. My suspicion is that you haven't installed mod_php, though I'm not sure how things work on Windows. Could you be more precise with this sentence: but I cannot see the Hello World do you see anything at all? possibly the static text of the source code? Any error messages, anything logged to the error log.. - 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: [us...@httpd] Serving partial data of in-memory common data set
On Wed, Jul 29, 2009 at 11:18 AM, S.A.qmt...@yahoo.com wrote: ... We started with 30 concurrent users and there was no trouble, but when the next batch of 70 users hit concurrently, we could not serve all the users. Just a note for now. The above is an important part, and maybe you should have started your initial post with that information. It shows that you have a running system, that you have tried your application, and that you have already seen a problem. I know it is a matter of presentation, but it puts everything in a different light and is more likely to attract attention and helpful responses, than the way you presented your initial post, which looked more like you were looking for theoretical answers to hypothetical questions. May be I should have. I was debating between a long post and a summary and in the interest of time, tried to post what I was looking for. We have about about 10 set of 50 pages and each page containing varying number of images (on an average 45 images of about 2KB and about 50 or so 0.5KB images) and an occasional multi-media file. For this discussion, we can ignore the multi-media file. The page content and the sequence of page presentation is user dependent, but for a group of users this 50 page set is constant. With each request we do updates on 3 mysql tables. The last sentence is also something worth investigating. Such as : is the bottleneck at the level of the images, or at the level of the mysql accesses ? The reason why I am not suspecting mysql was that the mysql log does indicate that it is getting all the requests and it is servicing them. As I have stated before, some of the users though are not getting images. ... Our eventual objective is to serve about 200,000 users (of course not with our existing hardware) and we are looking at various options. That is also a good number to give, as it gives a measure of the goal. ... We have definitely a problem and looking at various options to resolve it. My first reaction to the above would be that yes, you do have a problem. If you cannot serve the kind of content you mention for 70 users, with the hardware you mention, then something seems definitely amiss. I cannot imagine that you could have a problem serving 70 clients simultaneously, with pages containing 45 images of 2 KB each. My gut feeling tells me that you may have a concurrency problem at the level of your mysql accesses. Would it be possible, for instance, to replace the mysql accesses by some static content fetched from disk (for example, 1 distinct text file for each of your client-ids, the name being client-id driven) ? And then see if you have a problem ? There is very little data that gets served to the user from mysql. We use mysql to maintain statistics on what content user is accessing and the sequence in which the info is presented as the order matters to us. So, it is predominantly updates that we do to the mysql. Of course, updates are more latency intense than reads, yet those operations seem to get thru. The reason for that gut feeling is that you wrote somewhere that you can serve up to a certain number of clients fine, but when increasing the number, you hit a wall. We have looked at mysql aspect and will continue to look at it. Hardware is another issue we need to resolve and then may be memcached. Thank you again for your responses. - 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 This might not be an option if image access varies based on privilege of user (or if every user has unique images), but have you considered using a spritemap for the images? 50 http requests can be non-trivial. - 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: [us...@httpd] Serving partial data of in-memory common data set
On Tue, Jul 28, 2009 at 3:37 AM, S.A.qmt...@yahoo.com wrote: Hello, We have a requirement of serving fixed set of data elements (text, images, audio, video, etc) to a group of users coming at about the same time, but each user requesting different set of data elements from the given data set. Data set is fixed, but what data elements are presented to a user is dependent on user's configuration parameters and they vary from user to user. Other than the requesting data elements of a given set, there is nothing that is common among users and hence their requests can be treated as such, ie as independent requests. What is the best way to deal with the above scenario so that the each httpd process does not goto to either file store or db for each user request? Is there a way that we can retain this data in-memory and depending on the requesting user, we read their configuration and then come to the in-memory data set and build a page for the user and serve the user? Appreciate any insights or pointers. Thanks S.A. http://www.danga.com/memcached/ You dont mention what language/mechanism you want to pull the data out; memcached has client libraries for almost every language under the sun, so it should be appropriate. Cheers Tom Hi Tom, I am using LAMP and additionally a regular ext3 file store and an ldap. Most of the data is in mysql and in file store and it is this I would like to cache and serve via php pages. I will checkout memcached. Thanks for the pointer. Is there anything native to apache itself? Thanks No, but that is almost certainly by design. Caching works best the more you can scale it. Anything inside apache would be per-process, or at best, per-machine. Using memcached allows you to scale out your cache to support many backend machines. The best way to use memcached is to avoid DB queries. You can either cache your objects, so you don't need to do DB queries to load them, or cache the resultant html you would draw from the objects, so you don't even need the objects. If you can cache entire pages, apache has mod_cache and its various sub types. Cheers Tom As I have stated before, I have common data element set, but the individual user request needs to be serviced by dynamically generating the html page using some of the date elements from the common set. I could not possibly cache html pages as they vary from user to user and even requests from the same user changes from request to request. Much of the data is in multi-media form on the file store and this is what I would like to have cached and accessed without having to goto disk for each request. In addition there is some data in mysql tables and which needs to be updated. I would like to cache the file store which is read-only, but I am hesitant to cache mysql data as much of it is dynamic and needs several updates with each request. 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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org As I have stated before Don't get snippy, you're asking for free technical consulting on a matter that's not even really pertinent to this mailing list I think you'll have to describe your application more precisely if you want more advice, particularly this last sentence: I would like to cache the file store which is read-only, but I am hesitant to cache mysql data as much of it is dynamic and needs several updates with each request. - 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: [us...@httpd] Can't alloc filename, referer: http://blah.com/somefile.shtml
On Tue, Jul 28, 2009 at 5:33 PM, Ezra Taylorezra.tay...@gmail.com wrote: Gents: I'm gettng the above error. Can one of you shine some light on this? My setup is as follows. Thanks for your help. Redhat 4 update 8 Apache 2.0.25 -- Ezra Taylor If you are interested in an informed response I'd advise you to be _much_ more descriptive. Among the many followup questions I could think of, I would first ask: are you truly just serving up a static text file or is somefile.shtml actually served up by some scripting language? - 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: [us...@httpd] mod_rewrite question
On Thu, Jul 16, 2009 at 8:42 AM, Eric Covenercove...@gmail.com wrote: On Thu, Jul 16, 2009 at 11:37 AM, howard chenhowac...@gmail.com wrote: A simple rewrite rule: RewriteRule ^/(.*) /index.php?q=test1 [QSA] RewriteRule ^/test2 /index.php?q=test2 [QSA,L] The above rules rewrite everything to q=test1, even I enter the URL = http://www.example.com/test2 How to do the following... = Rewrite all url, except /test2, with the query string q=test1. If url is /test2, rewrite as q=test2 Reverse them if not in htaccess. If In htacces, protect with RewriteCond %{REQUEST_URI} ... -- Eric Covener cove...@gmail.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 Eric, I've wondered about the L flag in htaccess and often considered it a bug that it does not work as it does outside of htaccess, I've searched the documentation but this is sort of an esoteric thing to think up a keyword for so pardon me if this is explained there, but why does the L flag not work (or work differently) in .htaccess? - 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: [us...@httpd] Apache under DOS
On Tue, Jul 7, 2009 at 11:50 PM, nima chavooshinima0...@gmail.com wrote: Hi Recently attackers use new attack for DOS apache.for example see http://isc.sans.org/diary.html?storyid=6601rss . Is there any solution for prevent this DOS attack? what solution do you suggest for limit concurrent connection? thanks for any help or guidance -- N.Chavoshi This has been discussed extensively (within the last month), check the archives. - 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: [us...@httpd] Re: Load balancing between different versions of a web application
On Mon, Jul 6, 2009 at 1:49 PM, Pranjal Thakurpranj...@gmail.com wrote: Hello, My problem is mentioned in the previous post (see below). I want to add that I cannot use sticky sessions as the cloud that hosts our sessions is fully clustered and so has the ability to send requests to a different server instance in case the current instance fails. let me know if there is a way to achieve this. thanks. On Mon, Jul 6, 2009 at 11:24 AM, Pranjal Thakur pranj...@gmail.com wrote: This is more of a theoretical question. I want to know if it is possible to do this: I have various versions of a web application, each running certain number of instances. When a request comes in, it goes to a certain instance of some version. I want the load balancer to now route further requests from this user to only the instances of the version it was first routed to. I can maintain a cookie or some other way to save the version number of the instance. But I need the load balancer to now take that into consideration for further requests. Is this possible and Is there any plugin available for this? Any help will be appreciated. thank you. Probably will need to contact whoever hosts your app for more info, but theoretically I don't see why this can't be achieved, what type of load balancer are you using? I used netscaler briefly in the past and it was infinitely configurable.. - 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: [us...@httpd] Re: Load balancing between different versions of a web application
On Mon, Jul 6, 2009 at 5:56 PM, Pranjal Thakurpranj...@gmail.com wrote: I am using the apache mod_proxy load balancer: http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html I am not able to find any configuration change that I could make to achieve this. Here is the situation: my web application has 2 versions say N and N+1. N has 5 instances and N+1 has 5 instances running on the same cloud. A user gets to an instance of N the first time. I want all the following requests from that user to go to any of the 5 instances of N and not go to any instance of N+1 at all. On Mon, Jul 6, 2009 at 7:26 PM, Jonathan Zuckerman j.zucker...@gmail.com wrote: On Mon, Jul 6, 2009 at 1:49 PM, Pranjal Thakurpranj...@gmail.com wrote: Hello, My problem is mentioned in the previous post (see below). I want to add that I cannot use sticky sessions as the cloud that hosts our sessions is fully clustered and so has the ability to send requests to a different server instance in case the current instance fails. let me know if there is a way to achieve this. thanks. On Mon, Jul 6, 2009 at 11:24 AM, Pranjal Thakur pranj...@gmail.com wrote: This is more of a theoretical question. I want to know if it is possible to do this: I have various versions of a web application, each running certain number of instances. When a request comes in, it goes to a certain instance of some version. I want the load balancer to now route further requests from this user to only the instances of the version it was first routed to. I can maintain a cookie or some other way to save the version number of the instance. But I need the load balancer to now take that into consideration for further requests. Is this possible and Is there any plugin available for this? Any help will be appreciated. thank you. Probably will need to contact whoever hosts your app for more info, but theoretically I don't see why this can't be achieved, what type of load balancer are you using? I used netscaler briefly in the past and it was infinitely configurable.. - 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 I've written a few APIs and we always include the version in the URL somewhere (querystring, subdomain, whatever), so that new versions won't break compatibility. Is this an option? - 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: [us...@httpd] How do I prioritize requests ?
Can you provide a practical example of what you're trying to achieve? This sounds like a violation of net-neutrality, but anyway most web requests shouldn't take longer than a second or two anyway so I don't know what kind of performance boost your top-tier customers can reasonably expect with regards to response time from apache. On Thu, Jul 2, 2009 at 12:03 PM, ricardo13ricardoogra...@gmail.com wrote: Hi, Someone suggests an idea of how I would prioritize requests ina webserver. Requests with more priorities are processed first than less priorities. I don't have any idea. Thank You Ricardo -- View this message in context: http://www.nabble.com/How-do-I-prioritize-requests---tp24312330p24312330.html Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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 - 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: [us...@httpd] How do I prioritize requests ?
On Thu, Jul 2, 2009 at 1:06 PM, ricardo figueiredoricardoogra...@gmail.com wrote: Hi, Imagine a queue with many requests for low priority (requests_low), after arrive a request high priority (request_high). Request_high is then processed first than others. Provide QoS (Quality of Service) Thank you Ricardo On Thu, Jul 2, 2009 at 4:56 PM, Jonathan Zuckerman j.zucker...@gmail.com wrote: Can you provide a practical example of what you're trying to achieve? This sounds like a violation of net-neutrality, but anyway most web requests shouldn't take longer than a second or two anyway so I don't know what kind of performance boost your top-tier customers can reasonably expect with regards to response time from apache. On Thu, Jul 2, 2009 at 12:03 PM, ricardo13ricardoogra...@gmail.com wrote: Hi, Someone suggests an idea of how I would prioritize requests ina webserver. Requests with more priorities are processed first than less priorities. I don't have any idea. Thank You Ricardo -- View this message in context: http://www.nabble.com/How-do-I-prioritize-requests---tp24312330p24312330.html Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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 - 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 -- Muito Obrigado Ricardo If I had to implement this I'd do it in a scripting language, how are you identifying high priority requests from low priority requests? - 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: [us...@httpd] mod_cache alternative?
On Wed, Jul 1, 2009 at 3:26 PM, André Warniera...@ice-sa.com wrote: Developer wrote: Hello, mod_cache is very bad for caching. That's a bad way to start, if you really need help. Read this first : http://catb.org/esr/faqs/smart-questions.html For some unknown reason (for me) that is probably more accurate it caches script (all request are mod_rewrite in one php script) and not request URI response of server. there is no such thing as a URI in the server response. One requested URI should generate one server response, it does but mod_cache see all as same php script caching depends indeed (among other things) on the request URI (WRONG, I think that use internal server path and script). So far, I think the score is more like mod_cache 10 / Developer 0 Anyone known method to avoid this problem, study HTTP read the documentation or alternative to mod_cache? Another caching module? Another Developer ? - 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 BURN! on a serious note though, there's lots of options to configure in mod_cache: http://httpd.apache.org/docs/2.2/mod/mod_cache.html if you really can't figure it out, most languages have some type of templating engine with disk caching options, smarty for php and mako for python are very good. They add a little overhead but you have control to cache based on more than just the URL. - 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: [us...@httpd] mod_rewrite on Windows with Apache 2.2
On Mon, Jun 29, 2009 at 7:04 PM, Peter Kaypetya...@yahoo.com wrote: - Original Message From: tomcatastrophe nab...@changethings.org To: users@httpd.apache.org Sent: Monday, June 29, 2009 9:51:40 PM Subject: [us...@httpd] mod_rewrite on Windows with Apache 2.2 I have Apache 2.2 working perfectly on my Linux installation and now I am trying to set up a copy on my Windows box for development. Everything works fine except rewriting of URLs. I have searched and searched online, but every guide and forum says something different. The information is poorly organized and I can't seem to find a simple answer. Here is the basic problem: I have installed Apache 2.2 for Windows with the default configuration, nothing fancy. I set up some virtual hosts, they are detected and work fine. I can view my pages, etc. Now I want to add URL rewriting for one of my hosts. I added my rules and directive to the virtual host (these work fine on Linux): ProxyPreserveHost On ProxyPassReverse / ajp://localhost:8009/ RewriteEngine On RewriteRule ^/(.*)$ ajp://localhost:8009/$1 [P] But when trying to start Apache after doing this I get an error that the service failed to start. Did you check for a specific error in the Event Log? --Peter - 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 Don't know if this could be the problem (and it may even differ by version/configuration), but for my own local webservers (apache 2.2.11 on ubuntu and whatever comes with os x 10.5) the leading slash after the ^ should not be used in the regex. - 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: [us...@httpd] Benefits on Linux64 bit OS as compared to 32bit
I would imagine most commercial grade webservers are 64-bit. RAM is so cheap it seems like a waste of a sweet machine to use only 4 gigs of it On Tue, Jun 16, 2009 at 8:31 AM, Mohit Anchliamohitanch...@gmail.com wrote: We are currently on Apache 2.2.6, Red Hat Linux 32bit. We are planning to move to Linux 64bit OS to be consistent with other environments internal to our group. Before we make this change I wanted some suggestions on the following: 1. Are there any pros or cons of running Apache on Linux 64bit? 2. On 64 bit OS should we run 32bit Apache or should we compile 64bit apache? 3. Is there metric as to which one runs faster, reliable etc? 4. Are there any other things that I should be concerned about 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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - 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: [us...@httpd] Upload stops after 30 minutes
Probably not the answer you're looking for but I don't think that HTTP is the best protocol for what you're trying to do.. with files of that size, why not consider FTP or rsync/SSH? On Tue, Jun 16, 2009 at 8:56 AM, Patrick Herberpatrick.her...@ticino.com wrote: Hello! Thanks a lot for your answer! Unfortunately it seems that I'm really running against a timeout problem: Indeed with a slow connection I have this problem already with around 100MB, in my office (a good ADSL connection) I reach 250MB and directly in the same LAN of the Server I can upload 300MB in 10 minutes without errors... Thanks again and regards, Patrick André Warnier wrote: Patrick Herber wrote: ... Not really sure about this, so don't take it as gospel, but I believe that there may be some maximum POST size parameter built-in into Apache and/or Tomcat (as a protection against denial-of-service attacks). Maybe that is what you are running against, not a timeout. - 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 - 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: [us...@httpd] HTTP server scalability
On Fri, Jun 12, 2009 at 12:41 AM, Sean Conners...@conman.org wrote: It was thus said that the Great Vinay Nagrik once stated: Thank you Andrew and Tom, Thank you for your insightful replies. These have definitely helped me in understanding the major issues. At this moment I can not understand How a 'Connecton' is passed from parent process to child process. My understanding is a connection is a combination of (IP address + port.) and the parent process listens at one such address or multiple such addresses in virtual host interfaces. Let us assume the parent process is listening to only one such address i.e. (IP address + port). Then if this connection is passed to the child then this connection must be blocked and this is the only connection which will be multiplexed among several child processes as welll parent process. My point is that concurrency can not be achieved on a single connection (IP address + port) unless I am missing something fundemental about the definition of Connection. Secondly if a connection is passed to the child then once again the child process will have to make a three way handshake to the original client to service the request. I hope Andrew or someone from the group can clear my doubts. This is for Unix and Unix-like operating systems. Your milage will vary with other operating systems. When Apache starts, it creates a listening TCP socket. In the kernel, this socket will look something like: protocol localhost port remotehost remoteport TCP 192.168.1.23 80 0.0.0.0 0 In other words, a half connected socket (in reality, the localhost portion can also be 0.0.0.0, which means listen on all interfaces that support an IP address, but for the sake of argument, let's say we only want Apache to listen on a particular interface). The code to create this typically (if not spread out) looks like: struct sockaddr addr; int sock; /* * this creates space for a TCP socket */ sock = socket(AF_INET,SOCK_STREAM,0); /* * fill in the address we want to to listen in on * is not quite this way, but the actual details * would only get in the way ... */ addr.family = AF_INET; addr.host = 192.168.1.23 addr.port = 80; /* * now, connect the address/port to the socket * we just created */ bind(sock,addr,sizeof(addr)); So now we have our side of the socket created (see above). Now, onto real work. Apache (and I'm assuming the pre-fork version here) will create the children processes to handle actual requests. This is done via the fork() call (which creates a duplicate of the calling process). As part of this fork() call, the child process will see this socket as well [1], but since it doesn't handle incoming connections, the child can then close its copy of the socket (which won't affect the socket in the main parent process). The child process then changes its effective user id to some lower priviledged account, and then wait for the parent to give it some work to do. The parent process, however, continues on and tells Unix it is ready to accept network connections. /* * tell Unix we want to accept connections on this port. The * 5 value is the size of the backlog---the number of incoming * connections the kernel will queue up for us while we're busy * doing other stuff ... more on this in a bit */ listen(sock,5); So now Unix knows the main Apache process wants to accept connections on TCP port 80. Then the main Apache process Apache enters a loop that looks like: struct sockaddr remote_addr; socklen_t remote_size; /* size of remote address */ int connection; for ( ; ; ) /* ever */ { /* * we'll accept connections from anywhere, and from any port */ remote_addr.family = AF_INET; remote_addr.host = ANY_IP; remote_addr.port = ANY_PORT; remote_size = sizeof(remote_addr); connection = accept(sock,remote,remsize); /* * between now and the time we get back to the accept() * call, the Unix kernel will queue up to five connection * requests. More on this below ... * Meanwhile, pass this socket to a child process ... */ pass_connection_to_child(connection); /* * now that we have passed the socket on, the parent * no longer needs its copy of the socket, so it can * close it, and cycle back for another connection. */ close(connection); } The accept() call blocks Apache until an incoming connection to port 80 is initiated (or one or
Re: [us...@httpd] Apache uses FIFO scheduling ??
You've probably included mod_worker (http://httpd.apache.org/docs/2.0/mod/worker.html) In this case, requests are assigned to a thread within a unix process. I think that each thread can operate concurrently (that is the definition of a thread right?), and apache child processes are likely given CPU time according to the operating system's process scheduler. I suspect, given: each request takes approximately the same time to process and the thread assignment is balanced, that Apache generally acts like FIFO, but it's not a really a stack until you get down to the hardware so the analogy isn't appropriate... On Fri, Jun 5, 2009 at 5:45 AM, Eric Covener cove...@gmail.com wrote: On Fri, Jun 5, 2009 at 8:08 AM, ricardo figueiredo ricardoogra...@gmail.com wrote: Hi, I would like about How work Apache ?? I read a scientific about that Apache works like FIFO. Is it true ?? Anyone ??? You need to elaborate. What scenario/processing in Apache are you talking about? -- Eric Covener cove...@gmail.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 - 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: [us...@httpd] How do you build a FIPS 140-2 apache ?!?!?!
On Tue, May 26, 2009 at 12:44 PM, Sam theman xray...@hotmail.com wrote: Hello, Can anyone supply the step-by-steps for building apache with FIPS 140-2 openssl? Sam Insert movie times and more without leaving Hotmail®. See how. hotmail ads? lol - 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: [us...@httpd] authentication question
On Sat, May 9, 2009 at 9:34 AM, Ross Boylan r...@biostat.ucsf.edu wrote: Suppose I have apache running in front of a web application and subversion. I am thinking of a scenario in which the web application provides a login page. However, the user may also browse to web pages served by subversion. Is there a way that my app can have someone log in and then pass the identity and authentication up to appache? In particular, I'd want this authentication used if the user browsed over to the subversion repository. I'm assume a common source, e.g., LDAP, will provide user and password information that is the same for my app and apache. A final wrinkle is that the application itself may access subversion via http:// (https?) using either the identity of the user or, perhaps, a separate identity the application runs under. - 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 This is a good question, it would be nice to use Apache to authenticate all those pages instead of having to include your own application's authentication in every page. Let us know if you do find a solution for this, I'd be interested to hear how it turns out. - 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: [us...@httpd] Re: Mod rewrite help
On Fri, May 8, 2009 at 8:37 AM, Justin Pasher just...@newmediagateway.com wrote: Brent Clark wrote: Hiya Sorry to give and example, I have inherited this machine, and I have this in the conf file Alias /dms-bookings/ /bookingsdata/bookings_data/bookings/ Alias /dms-bookings-new/ /bookingsdata/bookings_data/bookings/ Alias /dms-bookings_1/ /bookingsdata/bookings_data/bookings_1/ Alias /dms-bookings_2/ /bookingsdata/bookings_data/bookings_2/ snippet Alias /dms-bookings_10/ /bookingsdata/bookings_data/bookings_10/ Something like this should get you there (untested). RewriteRule ^/dms-bookings_([0-9]+)/(.*) /bookingsdata/bookings_data/bookings_$1/$2 You'll have to leave the first two Alias definitions in there, since their format is different. -- Justin Pasher have you considered using symlinks to solve this problem? - 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: [us...@httpd] accessing files on another hard drive possible?
On Thu, May 7, 2009 at 2:05 PM, Kevin law nuke0...@gmail.com wrote: I have 3 hard drives hooked up. they are labeled c,e, and d. i have an index.html page setup in my documentroot folder. So i can manage links to folders and files in an organized way. i have tried making a link to e:\files\ but it just tells me that its forbidden is it possible to access folders/files on another harddrive? please help. -thanks You'll probably have to change the permisions of the directory on the other drive, I don't think the fact that it's on another drive has anything to do with it, this is more of a windows filesystem permissions question then anything to do with apache, I think. - 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: [us...@httpd] httpd service not starting on Windows 2008 (64bit) through Microsoft Failover Cluster
On Wednesday, May 6, 2009, Raja Shekar CS rshe...@gmail.com wrote: Hi, @Jonathan: error output I get is the complete usage help. There is no specific error seen. I added some debug logging to the httpd startup code, and it looks like Microsoft Failover Cluster server is passing invalid arguments: When started from Microsoft Failover Cluster: [Wed May 06 19:28:09 2009] [warn] INPUT ARGS 0 of 8 (8):: C:\\Program Files (x86)\\NetApp\\DataFabric Manager\\DFM\\bin\\httpd.exe [Wed May 06 19:28:09 2009] [warn] INPUT ARGS 1 of 8 (8):: -d[Wed May 06 19:28:09 2009] [warn] INPUT ARGS 2 of 8 (8):: C:/Program Files (x86)/NetApp/DataFabric Manager/DFM[Wed May 06 19:28:09 2009] [warn] INPUT ARGS 3 of 8 (8):: -f [Wed May 06 19:28:09 2009] [warn] INPUT ARGS 4 of 8 (8):: C:\\Program Files (x86)\\NetApp\\DataFabric Manager\\DFM\\conf\\httpd.conf[Wed May 06 19:28:09 2009] [warn] INPUT ARGS 5 of 8 (8):: Files [Wed May 06 19:28:09 2009] [warn] INPUT ARGS 6 of 8 (8):: (x86)\\NetApp\\DataFabric[Wed May 06 19:28:09 2009] [warn] INPUT ARGS 7 of 8 (8):: Manager\\DFM\\bin\\httpd.exe -k runservice The last three are causing the issue. These three are automatically taken as startup parameter when apache service as added as Generic Service to failover cluster (screenshot attached). When started from Service Control Manager (on the same system): [Wed May 06 19:29:24 2009] [warn] INPUT ARGS 0 of 5 (5):: C:\\Program Files (x86)\\NetApp\\DataFabric Manager\\DFM\\bin\\httpd.exe[Wed May 06 19:29:24 2009] [warn] INPUT ARGS 1 of 5 (5):: -d [Wed May 06 19:29:24 2009] [warn] INPUT ARGS 2 of 5 (5):: C:/Program Files (x86)/NetApp/DataFabric Manager/DFM[Wed May 06 19:29:24 2009] [warn] INPUT ARGS 3 of 5 (5):: -f[Wed May 06 19:29:24 2009] [warn] INPUT ARGS 4 of 5 (5):: C:\\Program Files (x86)\\NetApp\\DataFabric Manager\\DFM\\conf\\httpd.conf By ignoring the error for the additional parameters, I was able to start httpd through Failover Cluster. However, I am looking for one clarification: Service installed in service control manager with Path to executable as: C:\\Program Files (x86)\\NetApp\\DataFabric Manager\\DFM\\bin\\httpd.exe -k runservice I am not able to understand why the -k runservice argument is not showing up when started through service control manager. Just want to be sure that i haven't made a mistake in logging, and that this is the expected behavior. Thanks for your inputs, Raj. On Wed, May 6, 2009 at 2:34 AM, Jonathan Zuckerman j.zucker...@gmail.com wrote: On Tue, May 5, 2009 at 5:26 AM, Raja Shekar CS rshe...@gmail.com wrote: Hi, I tried an earlier version of apache (2.0.63) and also at simpler path. No luck. Any other hints ? Pls let me know. Thanks, Raj. On Mon, May 4, 2009 at 5:57 PM, Eric Covener cove...@gmail.com wrote: On Mon, May 4, 2009 at 7:57 AM, Raja Shekar CS rshe...@gmail.com wrote: I am facing an issue in bringing up httpd (2.2.10) configured in Microsoft Failover Cluster (MSCS) on Windows 2008 64 bit system. Usage: C:\\Program Files (x86)\\DFM\\bin\\httpd.exe [-D name] [-d Tried simplifying the path? -- Eric Covener cove...@gmail.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 Is it normal for the backslashrs in the path to be doubled up like that? Also why is the -k parameter outside the string delimiters? Sorry I'm not familiar with the microsoft technologies.. Could you paste the error output? From what you've sent us it looks like you're not substituting actual values for the optional parameter descriptions of the program signature, and are also using two slashes to separate directories instead of one.. - 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 - 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: [us...@httpd] httpd service not starting on Windows 2008 (64bit) through Microsoft Failover Cluster
On Tue, May 5, 2009 at 5:26 AM, Raja Shekar CS rshe...@gmail.com wrote: Hi, I tried an earlier version of apache (2.0.63) and also at simpler path. No luck. Any other hints ? Pls let me know. Thanks, Raj. On Mon, May 4, 2009 at 5:57 PM, Eric Covener cove...@gmail.com wrote: On Mon, May 4, 2009 at 7:57 AM, Raja Shekar CS rshe...@gmail.com wrote: I am facing an issue in bringing up httpd (2.2.10) configured in Microsoft Failover Cluster (MSCS) on Windows 2008 64 bit system. Usage: C:\\Program Files (x86)\\DFM\\bin\\httpd.exe [-D name] [-d Tried simplifying the path? -- Eric Covener cove...@gmail.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 Could you paste the error output? From what you've sent us it looks like you're not substituting actual values for the optional parameter descriptions of the program signature, and are also using two slashes to separate directories instead of one.. - 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: [us...@httpd] Unneeded Modules
On Mon, May 4, 2009 at 5:17 PM, Eric Covener cove...@gmail.com wrote: On Mon, May 4, 2009 at 6:35 PM, William A. Rowe, Jr. wr...@rowe-clan.net wrote: Jason Todd Slack-Moehrle wrote: I see that Apache is loading a ton of modules, what can I safely get rid of? Get rid of all the modules which don't affect the configuration or the behavior of your server. The easiest way to determine this is to comment one out and use apachectl -t to find out if you broke it. mod_info in 2.2 can help here as well. -- Eric Covener cove...@gmail.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 Would you mind replying back with a very brief post-mortem when you're done with this? If you can figure out what if any the performance gain was and whether you considered this something that every apache administrator should consider doing.. - 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: [us...@httpd] config httpd for php5 howto
On Mon, May 4, 2009 at 4:29 PM, Teun ubuntu.2...@dse.nl wrote: Thanks for help. André Warnier schreef: Teun wrote: As many others, I have the same problem in ubuntu lamp. That the apache do not pars php files, but give a download action. This action is wrong. Caus it must pars php files. It do not. After changing some files it shows only the tekst of the php code. I still can not find the solution. Please wat is the actual solution? #1: Apache does not come with PHP. Ubuntu lamp may well do, but see #2. #2: this is the Apache support list, not the ubuntu lamp support list. If the ubuntu lamp package is broken, this does not have much to do with Apache. You should complain on the ubuntu or lamp list. #3 : as you mention yourself, as many others. If you had made the small effort to search this list just a few responses ago, you would probably already have found the solution. It may have been more productive than just changing some files. - 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 - 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 I'd also like to add that LAMP is far from broken on Ubuntu, I set it up in literally 30 seconds utilizing only sudo apt-get install. You probably need to install libapache2-mod-php5 - 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: [us...@httpd] Unable to configure Apache to use as personal web server
I am unable to configure Apache to connect to my local site. Apache is installed as a personal web server on a notebook computer that uses the Windows Vista operating system. The Apache installation works, as evidenced by the It works index page shown upon using the http://localhosthttp://localhost; URL. I have configured the configuration file, httpd, trying to serve up an index of my web sites stored in the My Website folder, which is in the c:\users\user folder. Here are the configuration statements I believe are relevant: ServerRoot C:/Apache Software Foundation/Apache.2 Listen 80 User daemon Group daemon ServerName localhost:80 DocumentRoot C:/users/user/my website/ Directory C:/users/user/my website/ Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory Use of the localhost URL continues to show only the It works index page. I've tried every adjustment of configuration of which I can conceive. Where am I going wrong? On Wed, Apr 29, 2009 at 4:00 PM, Evan Platt e...@espphotography.com wrote: Not to oversimplify things, but if Apache is installed on the laptop, I'm guessing you're not going to want this accessable from the outside world - ie you wouldn't want ME to be able to access it from my house, right? So what's in this folder? A Index.html file? You don't need Apache (or any web server) for that. Open up any web browser, type C:\directory\index.html, and viola . Evan, a lot of times people want to work on a website which is created using a scripting langauge, uses a database, etc.. even if they are not connected to the internet at the time, or simply want to save bandwidth. Working on your local webserver allows you to write code that will work on the public webserver but does not require an internet connection or the packet relay time during development. - 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: [us...@httpd] Dot extremely slow when called from python cgi script
On Saturday, April 25, 2009, Dan Yamins dyam...@gmail.com wrote: I'm having a problem with performance of the program dot (for rendering graphs) when called from a python cgi script, served by an apache virtual host. I'm writing this email both the apache httpd list as well as the graphviz users lists (hoping some intersection might be useful). Have you got fastcgi enabled? I doubt seriously that it would account fir 3.94 seconds but might help a little bit.. I believe it caches opcode.. Also have you thought about reading the apache log? If the time differential really is on the apache side I'm sure there will be reams of data to slog through I'm using OSX 10.5.6 and graphviz2.22 (built via macports). When I run a simple python script that calls dot (via a system call) to render a small graph, it takes about .04 seconds, which is normal. But when I run the same call via CGI script it takes roughly 100 times longer (4 seconds). I've tried graphs of various sizes, ranging from very tiny graphs (4 nodes) to much larger graphs. The 4 seconds figure for the CGI script doesn't change much except for very large graphs, so the time spent in the CGI script is probably not coming from the actual rendering itself. Not all system calls in my CGI scripts take longer than their regular called at the prompt version (e.g. if I do a simple 'pwd' it is comparable in time when called in the CGI script versus the non-served script. (And many others perform fine.) The problem just seems to be with the graphviz dot executable. Below are the two test scripts that when run on my machine illustrate the problem. Any help (from either community) would be great. Thanks! Dan Here's the python script: run as python test.py --test.py- import os, time T = time.time() os.system('/opt/local/bin/dot -Tsvg -o test.svg graph.dot') print time.time() - T #output here is 0.04 seconds T = time.time() os.system('pwd testout.txt') print time.time() - T #output here is 0.003 seconds Here's the CGI script: run by navigating to the proper URL for the virtual host on my local machine --test.cgi #!/Library/Frameworks/Python.framework/Versions/Current/bin/python import time import cgi, os print 'Content-Type: text/html; charset=utf-8\n\n' os.chdir('../../Temp') T = time.time() os.system('/opt/local/bin/dot -Tsvg -o test.svg graph.dot') print time.time() - T #output here is like 4 seconds T = time.time() os.system('pwd testout.txt') print time.time() - T #output here is 0.003 seconds - 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: [us...@httpd] Sending Response without reading whole request content
So far as I know you would have to use ajax to get it to work the way you want. Isn't the user interested in knowing whether their upload was a success? On Wed, Mar 25, 2009 at 11:26 PM, Anuradha ds_...@yahoo.co.in wrote: Hi , One my of requirement demands me to read only initial data and send the response. Is there a way I can send the response without reading whole request content data? For example if I am uploading a file of 2 GB in multi-part form data and I want to read the initial contents say 2KB of buffer and send the response immediately without reading rest of the data i.e (2GB total size- 2kb read data). Can I achieve this in Apache HTTP server? Please let me know. Thanks and Regards, Anuradha. Add more friends to your messenger and enjoy! Invite them now. - 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: [us...@httpd] Sending Response without reading whole request content
Actually I take that back, this is never going to work. If the user doesn't remain on the page sending the data until it's all sent, then it will never work. There is no web server in the world that can do what you want. On Thu, Mar 26, 2009 at 10:33 AM, Jonathan Zuckerman j.zucker...@gmail.com wrote: So far as I know you would have to use ajax to get it to work the way you want. Isn't the user interested in knowing whether their upload was a success? On Wed, Mar 25, 2009 at 11:26 PM, Anuradha ds_...@yahoo.co.in wrote: Hi , One my of requirement demands me to read only initial data and send the response. Is there a way I can send the response without reading whole request content data? For example if I am uploading a file of 2 GB in multi-part form data and I want to read the initial contents say 2KB of buffer and send the response immediately without reading rest of the data i.e (2GB total size- 2kb read data). Can I achieve this in Apache HTTP server? Please let me know. Thanks and Regards, Anuradha. Add more friends to your messenger and enjoy! Invite them now. - 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: [us...@httpd] How to prevent a site to be grabbed ?
Use a one-time pad. Every URL to an mp3 is not an actual resource, it's a link that is generated when the user indicates a desire to download the mp3, and the mp3 is then copied from a protected place to a public place. After that link is accessed one time, a script is run which outputs the mp3 as a file, then deletes the public mp3 and invalidates the link. Hashing, cryptography, this is a classic computer science problem ;) On Thu, Mar 26, 2009 at 2:38 AM, Octavian Rasnita orasn...@gmail.com wrote: Password-protect it, and don't give the password to anyone. :-) If someone sees a page from your site, that page was already downloaded to the visitor's computer, and a visitor can create a program that download all the pages which he can access using a browser. Octavian - Original Message - From: J. Bakshi joyd...@infoservices.in To: users@httpd.apache.org Sent: Thursday, March 26, 2009 10:57 AM Subject: [us...@httpd] How to prevent a site to be grabbed ? Hello, This is a very worried continuation of my previous mail how to prevent mp3 downloading ? André Warnier has already opened my eyes that wget and curl are quite capable to bypass the .htaccess by using --user-agent option and I myself successfully downloaded some file and folders from the my own site which I believe having a strong .htaccess to prevent curl and wget. So I'm looking a way to prevent my site to be grabbed. Could any one suggest any measure in apache or .htaccess ? Eagerly waiting for your kind response. 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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - 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 - 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: [us...@httpd] Handling Redirects + SEO
Mandy, how would the directive know whether to look on microsite or mainsite to find the requested page without making inefficient requests? Think carefully about what you're trying to do here: why have two sites at all if you only want users to access one of them? On Mon, Mar 23, 2009 at 11:18 PM, Mandy Singh man...@gmail.com wrote: Hi, I would like some help in understanding how redirects work. I have a main site www.mainsite.com and a microsite www.microsite.com. All my rankings should be determined by mainsite.com. However, we didn't think about it earlier and now microsite.com and mainsite.com have divided traffic and hence rankings are lower. We want to consolidate the two. I know about 301 redirects and ideally I could have done - RewriteEngine ON RewriteRule ^(.*)$ http://www.mainsite.com/$1 [R=301,L] So, www.microsite.com/about/index.php would go to www.mainsite.com/about/index.php and my rankings would be accounted for as its a permanent redirect. However, this would mean I need to move all my pages physically from microsite to mainsite. Is there another alternative wherein I keep all my pages on microsite (still have same directory structure) but call them using mainsite.com domain? Am I making sense? Let me know. 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: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org