[EMAIL PROTECTED] Equivalent of CHttpFilter::GetFilterVersion(pVer) in Apache linux
We are migrating a WebServer Application from IIS to Apache linux.We are unable to find equivalent functions in linux to CHttpFilter::GetFilterVersion(pVer).Also are there any flags in linux apache SF_NOTIFY_ORDER_LOW? Thanks The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
[EMAIL PROTECTED] Stupid Question: Canonical Name Rewrite Location
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a server with multiple hosts names on one IP address. I have figured out from all the searches I made that I can do rewrite the other hosts names to "correct" the address to "www". ServerName www.example.com:80 ServerName a.example.com:80 ServerName b.example.com:80 ServerName c.example.com:80 RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteRule ^/(.*) http://www.example.com/$1 [L,R] My question is all the examples I have seen are within a "Virtual Host" directive. I don't see any problem with making it global as I only have one IP address to worry about. My stupid question is: Why "Virtual Host"? Is there some sort of security issue with having the "RewriteEngine on" in the master file? I would appreciate someone giving me an answer either way. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGOiulhs7JGk93PT0RAlNfAJ9YvhE3v0xiHCgMX01QMJvfYBgwZgCdEOSJ PJWo+MRbkPZtHvjW9t8JbkY= =bxrQ -END PGP SIGNATURE- - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Stupid Question: Canonical Name Rewrite Location
On 5/3/07, Ann Hopkins <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a server with multiple hosts names on one IP address. I have figured out from all the searches I made that I can do rewrite the other hosts names to "correct" the address to "www". ServerName www.example.com:80 ServerName a.example.com:80 ServerName b.example.com:80 ServerName c.example.com:80 RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteRule ^/(.*) http://www.example.com/$1 [L,R] My question is all the examples I have seen are within a "Virtual Host" directive. I don't see any problem with making it global as I only have one IP address to worry about. My stupid question is: Why "Virtual Host"? Is there some sort of security issue with having the "RewriteEngine on" in the master file? If you don't have any virtual hosts, then you can certainly put RewriteEngine, etc in the main config. I don't know what examples you are talking about, but it could be placed inside a just because people dealing with multiple hostnames typically already have some s setup. By the way, you should only have a single ServerName in the main part of your config. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Tools for better viewing Apache access logs?
Thanks again to those who helped me get past my BSOD problem and finally put Apache to use. Now that I'm using it, I'm wondering if there's some tool that exists to enhance and restructure the display of information in Apache's access log? I'd like to view the log with a hostname and more column-structured, in particular. The previous server I was using included hostnames and displayed everything in well-ordered columns, and I found those to be a very helpful features. Is there a viewing utility for Apache that can display the log in (configurable) columns and resolve the IP addresses to hostnames and display those as well? That hostname feature was how I immediately knew when the U.S. government had been snooping on my blog: 150.148.0.27/wallwhale-pub.fda.gov. ;-) Mark - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Stupid Question: Canonical Name Rewrite Location
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The "Virtual Host" directive is the only one that takes "ServerAlias". This actually works in the main configuration file or a Virtual Host directive. The Apache documentation implies what I tried to be okay, but specific website examples from other people and searching this mailing list only showed it being used with "Virtual" Thanks again. Joshua Slive wrote: > On 5/3/07, Ann Hopkins <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> I have a server with multiple hosts names on one IP address. I have >> figured out from all the searches I made that I can do rewrite the >> other hosts names to "correct" the address to "www". >> >> ServerName www.example.com:80 >> ServerName a.example.com:80 >> ServerName b.example.com:80 >> ServerName c.example.com:80 >> RewriteEngine on >> RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] >> RewriteRule ^/(.*) http://www.example.com/$1 [L,R] >> >> >> My question is all the examples I have seen are within a "Virtual >> Host" directive. I don't see any problem with making it global as I >> only have one IP address to worry about. >> >> My stupid question is: >> >> Why "Virtual Host"? Is there some sort of security issue with >> having the "RewriteEngine on" in the master file? > > If you don't have any virtual hosts, then you can certainly put > RewriteEngine, etc in the main config. I don't know what examples you > are talking about, but it could be placed inside a just > because people dealing with multiple hostnames typically already have > some s setup. > > By the way, you should only have a single ServerName in the main part > of your config. > > Joshua. > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] > " from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGOi/Chs7JGk93PT0RApdSAJ4o/daFKsZxVTtD4guVIbErJuNI+gCeMzLi 0wK/mucwbJ7LeJwYrM53hOQ= =nvhu -END PGP SIGNATURE- - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] RESTARTING APACHE
Hello folks, is there a way to schedule apache to restart after some hours ? Any script out there ? Thanks Bashiro ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Stupid Question: Canonical Name Rewrite Location
On 5/3/07, Ann Hopkins <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The "Virtual Host" directive is the only one that takes "ServerAlias". This actually works in the main configuration file or a Virtual Host directive. Right, but you still can't have more than one ServerName. The server is just using the last one. You should be putting only the canonical hostname in ServerName. But the fact is, if UseCanonicalName is set Off, then ServerName has very little effect on anythin. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RESTARTING APACHE
On 5/3/07, Bashiro <[EMAIL PROTECTED]> wrote: Hello folks, is there a way to schedule apache to restart after some hours ? Any script out there ? What OS? That would typically be the job of cron (under unix) or the windows task scheduler on MS-Windows. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RESTARTING APACHE
When you install Apache on Windows a script to restart is included on the Start Menu, check that out. Bashiro escreveu: Hello folks, is there a way to schedule apache to restart after some hours ? Any script out there ? Thanks Bashiro ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marcos R. Cardoso Seção de Documentação e Automação Biblioteca Universitária FURB - Blumenau (047) 3321-0660 - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RESTARTING APACHE
Ja the icon in the start menu is just a monitor. WIndows task cannot restart it to affect apache itself. But if only I could get hold of the httpd itself, perhaps windows task could do it. But how ? I am stuck Bashiro --- On Thu 05/03, Marcos R. Cardoso < [EMAIL PROTECTED] > wrote: From: Marcos R. Cardoso [mailto: [EMAIL PROTECTED] To: users@httpd.apache.org Date: Thu, 03 May 2007 16:01:13 -0300 Subject: Re: [EMAIL PROTECTED] RESTARTING APACHE When you install Apache on Windows a script to restart is included on the Start Menu, check that out.Bashiro escreveu:> Hello folks,>> is there a way to schedule apache to restart after some hours ?> Any script out there ?>> Thanks>>> Bashiro>>> ___> No banners. No pop-ups. No kidding.> Make My Way your home on the Web - http://www.myway.com -> The official User-To-User support forum of the Apache HTTP Server Project.> See http://httpd.apache.org/userslist.html> for more info.> To unsubscribe, e-mail: [EMAIL PROTECTED]>" from the digest: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>>> -- Marcos R. CardosoSeção de Documentação e AutomaçãoBiblioteca UniversitáriaFURB - Blumenau(047) 3321-0660-The official User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RESTARTING APACHE
I mean the Start Menu, not the Icon Tray, there you can see the shortcuts to some necessary actions like "Stop", "Start" and "Restart". Check the syntax for the "Restart" option (which I can't remember right now) and schedule that on windows, I use the "Stop" and "Start" once a week to dispose the log files. Marcos R. Cardoso Bashiro escreveu: Ja the icon in the start menu is just a monitor. WIndows task cannot restart it to affect apache itself. But if only I could get hold of the httpd itself, perhaps windows task could do it. But how ? I am stuck Bashiro --- On Thu 05/03, Marcos R. Cardoso < [EMAIL PROTECTED] > wrote: From: Marcos R. Cardoso [mailto: [EMAIL PROTECTED] To: users@httpd.apache.org Date: Thu, 03 May 2007 16:01:13 -0300 Subject: Re: [EMAIL PROTECTED] RESTARTING APACHE When you install Apache on Windows a script to restart is included on the Start Menu, check that out.Bashiro escreveu:> Hello folks,>> is there a way to schedule apache to restart after some hours ?> Any script out there ?>> Thanks>>> Bashiro>>> ___> No banners. No pop-ups. No kidding.> Make My Way your home on the Web - http://www.myway.com -> The official User-To-User support forum of the Apache HTTP Server Project.> See http://httpd.apache.org/userslist.html> for more info.> To unsubscribe, e-mail: [EMAIL PROTECTED]>" from the digest: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>>> -- Marcos R. CardosoSeção de Documentação e AutomaçãoBiblioteca UniversitáriaFURB - Blumenau(047) 3321-0660-The official User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marcos R. Cardoso Seção de Documentação e Automação Biblioteca Universitária FURB - Blumenau (047) 3321-0660 - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RESTARTING APACHE
Thanks a lot. i have scheduled it by using the icons in the start programs as you said. Thanks a lot Bashiro --- On Thu 05/03, Marcos R. Cardoso < [EMAIL PROTECTED] > wrote: From: Marcos R. Cardoso [mailto: [EMAIL PROTECTED] To: users@httpd.apache.org Date: Thu, 03 May 2007 16:16:53 -0300 Subject: Re: [EMAIL PROTECTED] RESTARTING APACHE I mean the Start Menu, not the Icon Tray, there you can see the shortcuts to some necessary actions like "Stop", "Start" and "Restart". Check the syntax for the "Restart" option (which I can't remember right now) and schedule that on windows, I use the "Stop" and "Start" once a week to dispose the log files.Marcos R. CardosoBashiro escreveu:> Ja the icon in the start menu is just a monitor.> WIndows task cannot restart it to affect apache itself.> But if only I could get hold of the httpd itself, perhaps windows> task could do it.> But how ? I am stuck>>> Bashiro>> --- On Thu 05/03, Marcos R. Cardoso < [EMAIL PROTECTED] > wrote:> From: Marcos R. Cardoso [mailto: [EMAIL PROTECTED]> To: users@httpd.apache.org> Date: Thu, 03 May 2007 16:01:13 -0300> Subject: Re: [EMAIL PROTECTED] RESTARTING APACHE>> When you install Apache on Windows a script to restart is included on the Start Menu, check that out.Bashiro escreveu:> Hello folks,>> is there a way to schedule apache to restart after some hours ?> Any script out there ?>> Thanks>>> Bashiro>>> ___> No banners. No pop-ups. No kidding.> Make My Way your home on the Web - http://www.myway.com -> The official User-To-User support forum of the Apache HTTP Server Project.> See http://httpd.apache.org/userslist.html> for more info.> To unsubscribe, e-mail: [EMAIL PROTECTED]>" from the digest: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>>> -- Marcos R. CardosoSeção de Documentação e AutomaçãoBiblioteca UniversitáriaFURB - Blumenau(047) 3321-0660-The official > User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED]>> ___> No banners. No pop-ups. No kidding.> Make My Way your home on the Web - http://www.myway.com -> The official User-To-User support forum of the Apache HTTP Server Project.> See http://httpd.apache.org/userslist.html> for more info.> To unsubscribe, e-mail: [EMAIL PROTECTED]>" from the digest: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>>> -- Marcos R. CardosoSeção de Documentação e AutomaçãoBiblioteca UniversitáriaFURB - Blumenau(047) 3321-0660-The official User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RESTARTING APACHE
This might be a silly question, but why would you want to restart Apache? Please respond to users@httpd.apache.org To: users@httpd.apache.org cc: (bcc: Dan Mitton/YD/RWDOE) Subject:Re: [EMAIL PROTECTED] RESTARTING APACHE LSN: Not Relevant User Filed as: Not a Record Thanks a lot. i have scheduled it by using the icons in the start programs as you said. Thanks a lot Bashiro --- On Thu 05/03, Marcos R. Cardoso < [EMAIL PROTECTED] > wrote: From: Marcos R. Cardoso [mailto: [EMAIL PROTECTED] To: users@httpd.apache.org Date: Thu, 03 May 2007 16:16:53 -0300 Subject: Re: [EMAIL PROTECTED] RESTARTING APACHE I mean the Start Menu, not the Icon Tray, there you can see the shortcuts to some necessary actions like "Stop", "Start" and "Restart". Check the syntax for the "Restart" option (which I can't remember right now) and schedule that on windows, I use the "Stop" and "Start" once a week to dispose the log files.Marcos R. CardosoBashiro escreveu:> Ja the icon in the start menu is just a monitor.> WIndows task cannot restart it to affect apache itself.> But if only I could get hold of the httpd itself, perhaps windows> task could do it.> But how ? I am stuck>>> Bashiro>> --- On Thu 05/03, Marcos R. Cardoso < [EMAIL PROTECTED] > wrote:> From: Marcos R. Cardoso [mailto: [EMAIL PROTECTED]> To: users@httpd.apache.org> Date: Thu, 03 May 2007 16:01:13 -0300> Subject: Re: [EMAIL PROTECTED] RESTARTING APACHE>> When you install Apache on Windows a script to restart is included on the Start Menu, check that out.Bashiro escreveu:> Hello folks,>> is there a way to schedule apache to restart after some hours ?> Any script out there ?>> Thanks>>> Bashiro>>> ___> No banners. No pop-ups. No kidding.> Make My Way your home on the Web - http://www.myway.com -> The official User-To-User support forum of the Apache HTTP Server Project.> See http://httpd.apache.org/userslist.html> for more info.> To unsubscribe, e-mail: [EMAIL PROTECTED]>" from the digest: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>>> -- Marcos R. CardosoSeção de Documentação e AutomaçãoBiblioteca UniversitáriaFURB - Blumenau(047) 3321-0660-The official > User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED]>> ___> No banners. No pop-ups. No kidding.> Make My Way your home on the Web - http://www.myway.com -> The official User-To-User support forum of the Apache HTTP Server Project.> See http://httpd.apache.org/userslist.html> for more info.> To unsubscribe, e-mail: [EMAIL PROTECTED]>" from the digest: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>>> -- Marcos R. CardosoSeção de Documentação e AutomaçãoBiblioteca UniversitáriaFURB - Blumenau(047) 3321-0660-The official User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RESTARTING APACHE
I want to restart Apache for the same reason why people want to restart any other program. For freeing memory ? for dumping memory ? for dumping log file? for releasing overload, for stability (in order to release hanging files) etc Bashiro --- On Thu 05/03, < [EMAIL PROTECTED] > wrote: From: [mailto: [EMAIL PROTECTED] To: users@httpd.apache.org Date: Thu, 3 May 2007 12:51:31 -0700 Subject: Re: [EMAIL PROTECTED] RESTARTING APACHE This might be a silly question, but why would you want to restart Apache? Please respond to users@httpd.apache.org To: users@httpd.apache.org cc: (bcc: Dan Mitton/YD/RWDOE) Subject: Re: [EMAIL PROTECTED] RESTARTING APACHE LSN: Not Relevant User Filed as: Not a Record Thanks a lot. i have scheduled it by using the icons in the start programs as you said. Thanks a lot Bashiro --- On Thu 05/03, Marcos R. Cardoso < [EMAIL PROTECTED] > wrote: From: Marcos R. Cardoso [mailto: [EMAIL PROTECTED] To: users@httpd.apache.org Date: Thu, 03 May 2007 16:16:53 -0300 Subject: Re: [EMAIL PROTECTED] RESTARTING APACHE I mean the Start Menu, not the Icon Tray, there you can see the shortcuts to some necessary actions like "Stop", "Start" and "Restart". Check the syntax for the "Restart" option (which I can't remember right now) and schedule that on windows, I use the "Stop" and "Start" once a week to dispose the log files.Marcos R. CardosoBashiro escreveu:> Ja the icon in the start menu is just a monitor.> WIndows task cannot restart it to affect apache itself.> But if only I could get hold of the httpd itself, perhaps windows> task could do it.> But how ? I am stuck>>> Bashiro>> --- On Thu 05/03, Marcos R. Cardoso < [EMAIL PROTECTED] > wrote:> From: Marcos R. Cardoso [mailto: [EMAIL PROTECTED]> To: users@httpd.apache.org> Date: Thu, 03 May 2007 16:01:13 -0300> Subject: Re: [EMAIL PROTECTED] RESTARTING APACHE>> When you install Apache on Windows a script to restart is included on the Start Menu, check that out.Bashiro escreveu:> Hello folks,>> is there a way to schedule apache to restart after some hours ?> Any script out there ?>> Thanks>>> Bashiro>>> ___> No banners. No pop-ups. No kidding.> Make My Way your home on the Web - http://www.myway.com -> The official User-To-User support forum of the Apache HTTP Server Project.> See http://httpd.apache.org/userslist.html> for more info.> To unsubscribe, e-mail: [EMAIL PROTECTED]>" from the digest: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>>> -- Marcos R. CardosoSeção de Documentação e AutomaçãoBiblioteca UniversitáriaFURB - Blumenau(047) 3321-0660-The official > User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED]>> ___> No banners. No pop-ups. No kidding.> Make My Way your home on the Web - http://www.myway.com -> The official User-To-User support forum of the Apache HTTP Server Project.> See http://httpd.apache.org/userslist.html> for more info.> To unsubscribe, e-mail: [EMAIL PROTECTED]>" from the digest: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>>> -- Marcos R. CardosoSeção de Documentação e AutomaçãoBiblioteca UniversitáriaFURB - Blumenau(047) 3321-0660-The official User-To-User support forum of the Apache HTTP Server Project.See http://httpd.apache.org/userslist.html> for more info.To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] preventing "self" entries in access log?
Is there a httpd.conf directive or other technique to prevent the logging of server accesses that originate from the same IP address as the server itself? I would like to prevent them from being logged entirely. Can I perhaps use some form of SetEnv to accomplish that? Mark - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] preventing "self" entries in access log?
On 5/3/07, Mark A. Craig <[EMAIL PROTECTED]> wrote: Is there a httpd.conf directive or other technique to prevent the logging of server accesses that originate from the same IP address as the server itself? I would like to prevent them from being logged entirely. Can I perhaps use some form of SetEnv to accomplish that? http://httpd.apache.org/docs/2.2/logs.html#conditional Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RESTARTING APACHE
Bashiro wrote: I want to restart Apache for the same reason why people want to restart any other program. For freeing memory ? for dumping memory ? for dumping log file? for releasing overload, for stability (in order to release hanging files) etc End original message. - Considering that Apache runs for extended periods on linux and other similar OS platforms without need for periodic restarts, I can't imagine that it would need it on Windows either. In fact, I ran an instance of an older Apache version (I don't recall which one) on a Windows 2000 machine for months at a time and never had a problem with it. The only times that Apache installation was ever restarted were when the machine was rebooted after software updates or installs. If Apache had any major memory leaks or other problems that caused a need to be restarted, I can assure you it would not be used as a production server by a large part of the ISP industry. Dragon ~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Help ! Apache 100%
Hello my friends! I have apache2 and mysql and php. When one user access to thw webpage and make a query apache2 uses the 98% of cpu How can i limit the cpu uses ???
Re: [EMAIL PROTECTED] preventing "self" entries in access log?
Joshua: Yes, I'd seen that, but my situation is a bit more complicated, since the server isn't sitting at a static IP, and I wasn't entirely certain how to do it. Would something like this work? SetEnvIf Remote_Addr Server_Addr dontlog CustomLog logs/access.log common env=!dontlog Mark Joshua Slive wrote: On 5/3/07, Mark A. Craig <[EMAIL PROTECTED]> wrote: Is there a httpd.conf directive or other technique to prevent the logging of server accesses that originate from the same IP address as the server itself? I would like to prevent them from being logged entirely. Can I perhaps use some form of SetEnv to accomplish that? http://httpd.apache.org/docs/2.2/logs.html#conditional Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RESTARTING APACHE
I run on UNIX (Sun Solaris 8/9), but Apache only comes down with the box while doing patches. To rotate log files, we use cronolog (cronolog.org), which auto-magically switches to new logs files on a configurable basis (we use daily). Please respond to users@httpd.apache.org To: users@httpd.apache.org cc: (bcc: Dan Mitton/YD/RWDOE) Subject:Re: [EMAIL PROTECTED] RESTARTING APACHE LSN: Not Relevant User Filed as: Not a Record Bashiro wrote: >I want to restart Apache for the same reason why people want to >restart any other program. >For freeing memory ? for dumping memory ? for dumping log file? >for releasing overload, for stability (in order to release hanging files) etc End original message. - Considering that Apache runs for extended periods on linux and other similar OS platforms without need for periodic restarts, I can't imagine that it would need it on Windows either. In fact, I ran an instance of an older Apache version (I don't recall which one) on a Windows 2000 machine for months at a time and never had a problem with it. The only times that Apache installation was ever restarted were when the machine was rebooted after software updates or installs. If Apache had any major memory leaks or other problems that caused a need to be restarted, I can assure you it would not be used as a production server by a large part of the ISP industry. Dragon ~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] preventing "self" entries in access log?
On 5/3/07, Mark A. Craig <[EMAIL PROTECTED]> wrote: Joshua: Yes, I'd seen that, but my situation is a bit more complicated, since the server isn't sitting at a static IP, and I wasn't entirely certain how to do it. Would something like this work? SetEnvIf Remote_Addr Server_Addr dontlog CustomLog logs/access.log common env=!dontlog No, that won't work. I don't know of any way of matching a dynamic IP like that. Why don't you just filter your logs after-the-fact? That is much simpler and more efficient. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Help ! Apache 100%
On 5/3/07, Alejandro Decchi <[EMAIL PROTECTED]> wrote: Hello my friends! I have apache2 and mysql and php. When one user access to thw webpage and make a query apache2 uses the 98% of cpu How can i limit the cpu uses ??? Your OS probably has tools to manage the priority of processes. Using 98% of cpu is not necessarily a bad thing in and of itself. Are there other performance problems? If so, you should look at how you have mysql setup and if your php programming is as efficient as it could be. None of that has anything directly to do with apache. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Tools for better viewing Apache access logs?
On 5/3/07, Mark A. Craig <[EMAIL PROTECTED]> wrote: Thanks again to those who helped me get past my BSOD problem and finally put Apache to use. Now that I'm using it, I'm wondering if there's some tool that exists to enhance and restructure the display of information in Apache's access log? I'd like to view the log with a hostname and more column-structured, in particular. The previous server I was using included hostnames and displayed everything in well-ordered columns, and I found those to be a very helpful features. Is there a viewing utility for Apache that can display the log in (configurable) columns and resolve the IP addresses to hostnames and display those as well? That hostname feature was how I immediately knew when the U.S. government had been snooping on my blog: 150.148.0.27/wallwhale-pub.fda.gov. ;-) If you want to see what is happening on your server at a particular moment, check mod_status and the server-status handler. If you want to see hostnames, you'll need to turn HostnameLookups On, but that will have performance effects. If what you want is just to better analyze requests to your server in general, you should use a log analysis tool. Try googling for "Apache log analysis" and similar... Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Equivalent of CHttpFilter::GetFilterVersion(pVer) in Apache linux
On 5/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: We are migrating a WebServer Application from IIS to Apache linux.We are unable to find equivalent functions in linux to CHttpFilter::GetFilterVersion(pVer).Also are there any flags in linux apache SF_NOTIFY_ORDER_LOW? You seem to be a little lost. You can't just take an app written for ISAPI and convert it function-for-function to the apache API. You'll need to learn in general how the apache API works. A good list to ask apache API questions is http://httpd.apache.org/lists.html#modules-dev Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] preventing "self" entries in access log?
Joshua: Yep, in lieu of an automated "inline" way to do it, I'll just have to strip them out by hand (or grow a mental blindspot to them :-). Since the IP and hostname does vary every time the DHCP lease expires, it means there's no backend way at all I could automate it. The only means of automation would be by comparing the server IP to the requesting IP at the time of the request, and rejecting any that match. I just wanted to do it to eliminate needless clutter from the log and make it easier to scan the useful stuff. Mark Joshua Slive wrote: On 5/3/07, Mark A. Craig <[EMAIL PROTECTED]> wrote: Joshua: Yes, I'd seen that, but my situation is a bit more complicated, since the server isn't sitting at a static IP, and I wasn't entirely certain how to do it. Would something like this work? SetEnvIf Remote_Addr Server_Addr dontlog CustomLog logs/access.log common env=!dontlog No, that won't work. I don't know of any way of matching a dynamic IP like that. Why don't you just filter your logs after-the-fact? That is much simpler and more efficient. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] FD_SETSIZE
On 5/2/07, Eduardo Meyer <[EMAIL PROTECTED]> wrote: On Apache2, how do I set FD_SETSIZE? I have found some virtual hosts limitations and FAQ and documentation tells I should define FD_SETSIZE in EXTRA_CFLAGS, but where EXTRA_CFLAGS go? I don't remember for sure, but I don't think that FD_SETSIZE has any effect in 2.x. You just need to make sure that your OS has allocated the necessary file descriptors to apache before you start. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] FD_SETSIZE
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 3 May 2007, Joshua Slive wrote: On 5/2/07, Eduardo Meyer <[EMAIL PROTECTED]> wrote: On Apache2, how do I set FD_SETSIZE? I have found some virtual hosts limitations and FAQ and documentation tells I should define FD_SETSIZE in EXTRA_CFLAGS, but where EXTRA_CFLAGS go? I don't remember for sure, but I don't think that FD_SETSIZE has any effect in 2.x. You just need to make sure that your OS has allocated the necessary file descriptors to apache before you start. Joshua. I've founds you nearly always have to increase the value, this is what we use and should be sufficient for machines that do about 2K hosts each, in apachectl: ULIMIT_MAX_FILES="ulimit -H -n 16384" check your logs for errors. you can also (playing it safe) cd /usr/include grep -R FD_SETSIZE * in bits directory edit typesizes.h and in linux directory posix_types.h You'll possibly see a few returns all saying 1024, change them to 16384. if you only have 1K host,s setting these all to 8192 will work just as good. - -- Cheers Res Vote for your favourite MTA at http://polls.ausics.net/v3.php -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGOmwpsWhAmSIQh7MRAvJOAJ9pWJ/2T7aBShMysrP2i2tUsKI9HwCgoOUl dJ0XMB6KhqccWEjHVB1YoPg= =XR8J -END PGP SIGNATURE- - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Slow Responding to Extra Request on Persistent Connection
Hey, I'm writing a program to test the performance of apache (we had a similar problem with lighttpd), and I keep running into a problem with persistent connections. We make a single request, like: GET fileName HTTP/1.1 Host: server:80 Keep-Alive: 300 Connection: keep-alive And we get a response back. We then make another, similar request on the same connection, and we get a response back, but there's a huge delay in-between sending our request and getting the response for the second request. To give you an idea of the times: request 1: sent at 0 ms, received at 1 ms request 2: sent at 1 ms, received at 41 ms request 3: sent at 41 ms, received at 81 ms request 4: sent at 81 ms, received at 121 ms And we see this 40 ms delay all throughout after the first request. Clearly it doesn't take that long to deliver the file, so we're not sure what gives...why the delay? Just FYI, we're testing on a high-bandwidth, low-latency network. Also, we do HTTP pipelining, and when we send all these requests at once on one connection, we get the response back extremely quick--we're just not sure why the 40 ms or so delay between requests on the same persistent connection and not on the pipelined connection. There's almost no lag between the machine, so we're not sure what's up. Is this something apache and lighttpd do to make sure people don't request too much. Is this a setting we can change? Thanks, Ryan - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] FD_SETSIZE
I have workarounded the situation by reconfiguring all 3 thousand domains to share the same log files, and use the split log scriot which comes with apache under support/ directory, as a guy has recomended me on freebsd list. However, I feel that sooner or later I will find out the same limitations again. And when I get close to 7 thousand domains I will certainly start having the same problems. So I need to know how to deal with this, because CPU and memory are resources that I will not starve soon. I have raised max files per proc and kernel maxfiles to unbelieveble values. This is the way to deal with this lind of limits in FreeBSD. However it did not help, so I think there may be some other kind of resource I am not raising. BTW I could out I can use EXTRA_FLAGS as argumento to make, make EXTRA_FLAGS=-DFD_SETSIZE=8192 resulted in FD_SETSIZE=8192 getting passed to Apache on every compilation line. But it did not help minimizing the problem. So, yeah, maybe this FD_SETSIZE thing is only for apache before 2x. Anyway this is a problem I think people will always have when they run some number of VirtualHosts. I dont think I am the only one here who have thounsands domains in a single Apache enviroment. BTW I have found this same limitation earlier with recent Linux kernel, but it was a 800 domains limitation. I had raised the appropriated values as suggested in a number of readings (including Apache2 documentation) and I got no solution. So I switched to FreeBSD, and only by setting maxusers kernel parameter accordingly I was able to have 2.8k domains. Now I found the same limitation again. But this time I doubt I can switch to anything else. I am sure this is something that need to be tunned up now and probably could have been tunned up earlier on Linux. So I need to understand what kind of resources Apache may starve, up to the point it stops responding or simply dies with error code 11. I am sure it is a resource thing because when I removed all that many log files, things started to work again, perfectly, and in fact with better performance. However, it is a resource problem which I havent fix, because I dont understand correctly what else, other than fd's Apache needs, so I can raise it. While I have free memory and free CPU cicles I intend to keep adding VH's to apache. So I need to learn to surpass this software limits. Hope people here in this list can help me. On 5/3/07, Joshua Slive <[EMAIL PROTECTED]> wrote: On 5/2/07, Eduardo Meyer <[EMAIL PROTECTED]> wrote: > On Apache2, how do I set FD_SETSIZE? I have found some virtual hosts > limitations and FAQ and documentation tells I should define FD_SETSIZE > in EXTRA_CFLAGS, but where EXTRA_CFLAGS go? I don't remember for sure, but I don't think that FD_SETSIZE has any effect in 2.x. You just need to make sure that your OS has allocated the necessary file descriptors to apache before you start. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === Eduardo Meyer pessoal: [EMAIL PROTECTED] profissional: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] FD_SETSIZE
On 5/3/07, Eduardo Meyer <[EMAIL PROTECTED]> wrote: However, it is a resource problem which I havent fix, because I dont understand correctly what else, other than fd's Apache needs, so I can raise it. I very much doubt that you will run into file descriptor limits if you avoid separate logs for the vhosts. Other uses of file descriptors would tend to grow with the number of simultaneous requests, rather than the number of domains. If you want to examine what fd's apache is using, try a tool like lsof. By the way, when you get into the 100s or 1000s of vhosts, it is almost always preferable to use a mass-vhosting solution like mod_vhost_alias. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Disabling the "Vary" header / Potential repercussions
Hi, I'm faced with a long-standing problem that has recently become a whole lot worse for me: It's the case of the "Vary" header preventing caching in Internet Explorer, which causes no end of problems when it is triggered via mod_negotiation. I use mod_negotiation extensively, not to actually negotiate content in the sense of serving different content to different clients, but rather to provide extension-less URLs. Not only does it make URLs look nicer, it also allows me to change filetypes (e.g. from .gif to .png, or from script.js.cgi to script.js.php) without breaking thousands of inbound links or maintaining a large redirection map. The trouble is this: mod_negotiation always adds a "Vary" header, but the "Vary" header breaks a ton of stuff in Internet Explorer. The biggest problems are (1) extension-less images are not cached, (2) dynamically generated CSS or Javascript files (e.g. style.css.php or functions.js.php) are not cached, and (3) some types of dynamically generated files -- e.g. favicon.ico.php or playlist.m3u.php -- are just totally broken in IE (won't display or pass properly to external programs). These issues are causing huge problems for my site, with IE pulling about 20x more data on each request than it should. It wasn't a big deal when I had a small site with low traffic, but it's spiraling out of control now... I've struggled for countless hours to find solutions to these problems, and I could only come up with two answers on the web, both of which have serious drawbacks: 1. Add "Header unset Vary" to httpd.conf. The problem with this is that it just doesn't work. I don't know why, but I've stuck it in about 100 different places and it doesn't make any difference. That "Vary" header never goes away. 2. Add "SetEnv force-no-vary" to httpd.conf. The problem with this is that it also degrades the connection to HTTP/1.0, which presumably has the side effect of killing HTTP pipelining. On a heavily trafficked site with a lot of small files requested on each page view, this is not a good trade-off. So... The question here is this: Since I'm not using mod_negotiation for any purpose except to hide extensions, can I safely do one of the following: 1. Modify src/main/http_protocol.c so that "force-no-vary" does not also trigger "force-no-response". OR 2. Modify src/modules/standard/mod_negotiation.c by commenting out the entire section that sets the Vary and TCN headers in the first place. I'll probably go with option 2 since it seems like the surefire way to wipe out that "Vary" header with no HTTP/1.1 degradation, but I'd like some input from the Apache gurus about potential pitfalls before I go through with either of these solutions in production. Thanks. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Getting rid of "Vary" -- Follow-up
Well, it turns out that getting rid of Vary within mod_negotiation isn't as straightforward as I'd hoped, so I've gone and change http_protocol.c in version 1.3.37 and http_filters.c in 2.2.4 so that setting "force-no-vary" does not fall back to HTTP/1.0. The only way I plan to use "force-no-vary" is by putting the following line in httpd.conf: BrowserMatch MSIE force-no-vary With that in mind, can someone who know more about these things than I do comment on the safety of this approach? As long as I limit "force-no-vary" to MSIE, is there any risk of *not* degrading to HTTP/1.0? And are the changes I made in these files sane? * Diff for 1.3.37 * --- http_protocol.c,orig2007-05-04 03:24:18.0 + +++ http_protocol.c 2007-05-04 03:49:25.0 + @@ -1942,8 +1942,6 @@ */ if (ap_table_get(r->subprocess_env, "force-no-vary") != NULL) { ap_table_unset(r->headers_out, "Vary"); - r->proto_num = HTTP_VERSION(1,0); - ap_table_set(r->subprocess_env, "force-response-1.0", "1"); } else { fixup_vary(r); * Diff for 2.2.4 * --- http_filters.c,orig 2007-05-04 04:00:30.0 + +++ http_filters.c 2007-05-04 04:02:05.0 + @@ -961,8 +961,6 @@ */ if (apr_table_get(r->subprocess_env, "force-no-vary") != NULL) { apr_table_unset(r->headers_out, "Vary"); -r->proto_num = HTTP_VERSION(1,0); -apr_table_set(r->subprocess_env, "force-response-1.0", "1"); } else { fixup_vary(r); - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Getting rid of "Vary" by altering mod_negotiation.c
Sorry for all the followups, but I wanted to post one this last modification for comments. Below you'll see the change I made to mod_negotiation.c that prevents it from appending the Vary, TCN, and Content-Location headers. Since I am only using mod_negotiation to allow me to use extension-less URLs, I do not see a need for any of these headers. With these changes, all of the Internet Explorer problems disappear. It properly caches all files and does not have problem with dynamically generated things like favicons and m3u playlists. This modification feels "safer" than the one I previously sent. Unconditionally wiping out the "Vary" header seems a little harsh, and it seems like it could potentially interfere with other modules that use "Vary", like mod_deflate and mod_proxy. (I'm just guessing about this though.) So... the mod_negotiation.c modifications are shown below. Is there anything danger in doing this? Change to mod_negotiation.c in 1.3.37 --- mod_negotiation.c,orig 2007-05-04 04:18:37.0 + +++ mod_negotiation.c 2007-05-04 04:50:17.0 + @@ -2231,21 +2231,21 @@ ap_array_pstrcat(r->pool, arr, '\0')); } -if (neg->is_transparent || vary_by_type || vary_by_language || -vary_by_language || vary_by_charset || vary_by_encoding) { - -ap_table_mergen(hdrs, "Vary", 2 + ap_pstrcat(r->pool, -neg->is_transparent ? ", negotiate" : "", -vary_by_type? ", accept" : "", -vary_by_language? ", accept-language" : "", -vary_by_charset ? ", accept-charset" : "", -vary_by_encoding? ", accept-encoding" : "", NULL)); -} - -if (neg->is_transparent) { /* Create TCN response header */ -ap_table_setn(hdrs, "TCN", - alg_result == alg_list ? "list" : "choice"); -} +//if (neg->is_transparent || vary_by_type || vary_by_language || +//vary_by_language || vary_by_charset || vary_by_encoding) { +// +//ap_table_mergen(hdrs, "Vary", 2 + ap_pstrcat(r->pool, +//neg->is_transparent ? ", negotiate" : "", +//vary_by_type? ", accept" : "", +//vary_by_language? ", accept-language" : "", +//vary_by_charset ? ", accept-charset" : "", +//vary_by_encoding? ", accept-encoding" : "", NULL)); +//} +// +//if (neg->is_transparent) { /* Create TCN response header */ +//ap_table_setn(hdrs, "TCN", +// alg_result == alg_list ? "list" : "choice"); +//} } /** @@ -2427,8 +2427,8 @@ ap_table_unset(sub_req->err_headers_out, "Vary"); } -ap_table_setn(r->err_headers_out, "Content-Location", - ap_pstrdup(r->pool, variant->file_name)); +//ap_table_setn(r->err_headers_out, "Content-Location", +// ap_pstrdup(r->pool, variant->file_name)); set_neg_headers(r, neg, alg_choice); /* add Alternates and Vary */ Change to mod_negotiation.c in 2.2.4 --- modules/mappers/mod_negotiation.c,orig 2007-05-04 04:45:00.0 + +++ modules/mappers/mod_negotiation.c 2007-05-04 04:46:08.0 + @@ -2605,21 +2605,21 @@ apr_array_pstrcat(r->pool, arr, '\0')); } -if (neg->is_transparent || vary_by_type || vary_by_language || -vary_by_language || vary_by_charset || vary_by_encoding) { - -apr_table_mergen(hdrs, "Vary", 2 + apr_pstrcat(r->pool, -neg->is_transparent ? ", negotiate" : "", -vary_by_type? ", accept" : "", -vary_by_language? ", accept-language" : "", -vary_by_charset ? ", accept-charset" : "", -vary_by_encoding? ", accept-encoding" : "", NULL)); -} - -if (neg->is_transparent) { /* Create TCN response header */ -apr_table_setn(hdrs, "TCN", - alg_result == alg_list ? "list" : "choice"); -} +//if (neg->is_transparent || vary_by_type || vary_by_language || +//vary_by_language || vary_by_charset || vary_by_encoding) { +// +//apr_table_mergen(hdrs, "Vary", 2 + apr_pstrcat(r->pool, +//neg->is_transparent ? ", negotiate" : "", +//vary_by_type? ", accept" : "", +//vary_by_language? ", accept-language" : "", +//vary_by_charset ? ", accept-charset" : "", +//vary_by_encoding? ", accept-encoding" : "", NULL)); +//} +// +//if (neg->is_transparent) { /* Create TCN response header */ +//apr_table_setn(hdrs, "TCN", +// alg_result == alg_list ? "list
Re: [EMAIL PROTECTED] Disabling the "Vary" header / Potential repercussions
On 4 May 2007, at 03:49, Fred Tyler wrote: [chop] This is OTTOMH. 1. Add "Header unset Vary" to httpd.conf. The problem with this is that it just doesn't work. I don't know why, but I've stuck it in about 100 different places and it doesn't make any difference. That "Vary" header never goes away. That'll be order of execution. 2. Add "SetEnv force-no-vary" to httpd.conf. The problem with this is that it also degrades the connection to HTTP/1.0, which presumably has the side effect of killing HTTP pipelining. On a heavily trafficked site with a lot of small files requested on each page view, this is not a good trade-off. I don't think so. HTTP/1.0 defaults to keepalive off, but still allows keepalive. Pipelining beyond that isn't AFAIK well-supported in today's browsers, so isn't really an issue. But I haven't looked at force-no- vary, which presumably has a specific purpose. 1. Modify src/main/http_protocol.c so that "force-no-vary" does not also trigger "force-no-response". Both of those are hacks. I'd say go ahead if and only if you can trace and understand the exact purpose of them, and how that'll affect them. 2. Modify src/modules/standard/mod_negotiation.c by commenting out the entire section that sets the Vary and TCN headers in the first place. It might be as simple as reordering mod_negotiation's adding the headers and mod_headers hacking them. But I'd need to look. -- Nick Kew - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Disabling the "Vary" header / Potential repercussions
> 2. Add "SetEnv force-no-vary" to httpd.conf. The problem with this is > that it also degrades the connection to HTTP/1.0, which presumably has > the side effect of killing HTTP pipelining. On a heavily trafficked > site with a lot of small files requested on each page view, this is > not a good trade-off. I don't think so. HTTP/1.0 defaults to keepalive off, but still allows keepalive. Pipelining beyond that isn't AFAIK well-supported in today's browsers, so isn't really an issue. But I haven't looked at force-no- vary, which presumably has a specific purpose. I did some quick research and you are correct: No version of IE supports pipelining so it's really a non-issue for that browser. So suppose I leave the Apache source alone and just put the following line in httpd.conf: BrowserMatch MSIE force-no-vary But is that going to have a negative effect somewhere? In addition to mod_negotiation I'm also using mod_deflate, and just upstream a different server is running mod_proxy. I don't really understand the connection between Vary, IE, mod_deflate, and proxies, but from what I understand there can be pitfalls. I'm also a little concerned about globally turning off Vary for Internet Explorer and consequently reverting back to HTTP/1.0. Since IE was never using pipelining in the first place, I don't know that this will really be an issue now, but are there other ways that performance will be decreased by doing this? > 1. Modify src/main/http_protocol.c so that "force-no-vary" does not > also trigger "force-no-response". Both of those are hacks. I'd say go ahead if and only if you can trace and understand the exact purpose of them, and how that'll affect them. If I knew what I was doing here, I wouldn't need to post :-) Really, I have no idea what the consequences of this would be. But I've more-or-less decided against it. If I change anything, it'll probably be mod_negotiation.c, not http_protocol.c. > 2. Modify src/modules/standard/mod_negotiation.c by commenting out the > entire section that sets the Vary and TCN headers in the first place. It might be as simple as reordering mod_negotiation's adding the headers and mod_headers hacking them. But I'd need to look. I sent a diff to the list in a followup message showing what I commented out to get rid of the headers. It looks safe enough, and it definitely works, but I just don't know anything about the Apache code and what I might be breaking. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Re: Trouble starting Apache HTTP Server
Thank you very much Robert for your tips. The built-in Apache server with MacOs was conflicting with my configuration and setup. I changed to my Apache bin directory and fired : a) ./apachectl -f /conf/httpd.conf for starting and b) ./apachectl -f /conf/httpd.conf -k stop for stopping After this , i downloaded tomcat's mod_jk module and compiled and configd for communicating with my Apache setup to my JBOSS-tomcat setup and its also working fine http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html Thanks a lot once again, On 4/26/07, Robert T Wyatt <[EMAIL PROTECTED]> wrote: Raju Chandran wrote: > Hi all, > I am trying to configure my standalone Apache server 2.2 in my Mac OS > > I am able to compile and install Apache HTTP Server 2.2.4 source tree > (downloaded for UNix) for my Mac OS server without enabling any features > (modules) > > I followed the guidelines given > > http://httpd.apache.org/docs/2.2/install.html > > > 1) I tried to start the server using "apachectl start" > > a) but failing and showing the following : > > Processing config directory: /private/etc/httpd/users/*.conf > Processing config file: /private/etc/httpd/users/abcde.conf > fopen: Permission denied > httpd: could not open error log file /private/var/log/httpd/error_log. > > I wonder why it is going to a different log path. I disabled the > built-in Apache Webserver comes with MacOS. Is it causing the issue? What do these commands result in? (And does that match your expectations?) which httpd which apachectl To start/restart the daemon you should be using: sudo apachectl start or sudo apachectl graceful (if it is already running) > b) I also tried "httpd -f /httpd.conf" > but it is also failing > > Syntax error on line 114 of /Volumes/DATA/Apache_new/conf/httpd.conf: > Invalid command 'Order', perhaps mis-spelled or defined by a module not > included in the server configuration > > Please help me in the above and also help me in how I can compile > 'modules' into the binary and use them > > Thanks > Raju > > - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Tools for better viewing Apache access logs?
Yep, I've wound up finding and downloading nearly a dozen alleged log analyzers, but most of them seem to do things I don't want while not doing what I do want, which is a simple columnar display of the logs, perhaps with a few filtering or sorting choices. I actually screwed around with importing the log into Excel, which got me closer to what I want (at the moment) than any of those analyzers I've installed so far. One of them even made things MORE confused, because it functioned through the browser by hitting the server and adding dozens of new irrelevant hits to the Apache log. What's that old science cliche about the act of observation altering the subject? >:-( Mark Joshua Slive wrote: On 5/3/07, Mark A. Craig <[EMAIL PROTECTED]> wrote: Thanks again to those who helped me get past my BSOD problem and finally put Apache to use. Now that I'm using it, I'm wondering if there's some tool that exists to enhance and restructure the display of information in Apache's access log? I'd like to view the log with a hostname and more column-structured, in particular. The previous server I was using included hostnames and displayed everything in well-ordered columns, and I found those to be a very helpful features. Is there a viewing utility for Apache that can display the log in (configurable) columns and resolve the IP addresses to hostnames and display those as well? That hostname feature was how I immediately knew when the U.S. government had been snooping on my blog: 150.148.0.27/wallwhale-pub.fda.gov. ;-) If you want to see what is happening on your server at a particular moment, check mod_status and the server-status handler. If you want to see hostnames, you'll need to turn HostnameLookups On, but that will have performance effects. If what you want is just to better analyze requests to your server in general, you should use a log analysis tool. Try googling for "Apache log analysis" and similar... Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]