Re: [us...@httpd] Redirect question

2010-05-06 Thread Igor Cicimov
Another possible solution I can think of: NameVirtualHost 1.2.3.4:80 # Virtual host that will collect all the request not hitting # the main virtual host (including application.example.com one) # and redirect them to server.example.com/application DocumentRoot /usr/local/apache2

Re: [us...@httpd] Redirect question

2010-05-06 Thread Igor Cicimov
What happens if you try NameVirtualHost 1.2.3.4:80 ServerName server.example.com ServerAlias application.example.com RewriteEngine On RewriteCond %{HTTP_HOST} ^application.example.com$ Redirect permanent / http://server.example.com/application if Redirect command doesn't work you can try Rewr

RE: [us...@httpd] Port 80 and 443 Running Name Based Virtual Host on a Single IP Address - need an example

2010-05-06 Thread Wang, Mary Y
Igor, Thanks for your time. I'm going to try it. Yes. I'm running Apache 2 on a Linux platform. I actually have a production system that is running on Apache 1.3.x and am in the process of migration to Apache 2. I've a question, why do I need to following? "# Note: The following must must b

[us...@httpd] Using mod_vhost_alias and mod_userdir in separate VirtualServers

2010-05-06 Thread Andrew Roth
Hello, I have been at this a while and can't figure it out. I know the documentation states that mod_userdir overrides mod_vhost, but it seems like I should be able to use them both as long as they are in separate virtual hosts, right? I am trying to do mass virtual hosting by using dynamic virt

RE: [us...@httpd] IP based redirect with mod_rewrite

2010-05-06 Thread Priya Vadlakonda (Contractor)
I think have the solution .. RewriteEngine on RewriteCond %{REMOTE_ADDR) !^(128\.48\.\.+)$ RewriteCond %{REQUEST_URI) ^* Redirect permanent .* https://. All this time I was using Rewriterule instead of Redirect and it was failing. I changed it red

Re: [us...@httpd] mod_rewrite Redirection ignoring the explicite code

2010-05-06 Thread Eric Covener
On Thu, May 6, 2010 at 6:48 PM, Karsten Bräckelmann wrote: > On Fri, 2010-05-07 at 08:28 +1000, Igor Cicimov wrote: >> Your RewriteRule is wrong it works with the URI part only and not the >> full URL. Read the mod_rewrite docos and correct your rule. > > Argh! An RTFM response. I probably deserve

Re: [us...@httpd] mod_rewrite Redirection ignoring the explicite code

2010-05-06 Thread Igor Cicimov
Your 301 rule is wrong. As i said it should match the URI parth meaning the part after the slash following the domain name and not the whole URL. So no http:// in the rewrite rule hope this makes it more clear. Sent from my phone On May 7, 2010 8:48 AM, "Karsten Bräckelmann" wrote: On Fri, 2010

Re: [us...@httpd] mod_rewrite Redirection ignoring the explicite code

2010-05-06 Thread Karsten Bräckelmann
On Fri, 2010-05-07 at 08:28 +1000, Igor Cicimov wrote: > Your RewriteRule is wrong it works with the URI part only and not the > full URL. Read the mod_rewrite docos and correct your rule. Argh! An RTFM response. I probably deserve it. But... I did read the docs. Lots of 'em. Still, I don't see w

Re: [us...@httpd] mod_rewrite Redirection ignoring the explicite code

2010-05-06 Thread Igor Cicimov
Your RewriteRule is wrong it works with the URI part only and not the full URL. Read the mod_rewrite docos and correct your rule. Sent from my phone On May 7, 2010 7:44 AM, "Karsten Bräckelmann" wrote: Please Cc me on every reply. I'm subscribed to the allow post list, but I am not subscribed

[us...@httpd] mod_rewrite Redirection ignoring the explicite code

2010-05-06 Thread Karsten Bräckelmann
Please Cc me on every reply. I'm subscribed to the allow post list, but I am not subscribed to receive list posts. Can't stand yet another mailing list at this point. ;) Yes, I know mod_rewrite is voodoo. ;) Anyway, here's a (somewhat) stripped down example of a case I really don't understand w

[us...@httpd] correct way to add to conf.d

2010-05-06 Thread Stephen Burke
I have a package that is using the autotools to build and install. Part of the package is a website that can be run on the local machine. So in the package there is a .conf file that is meant to be either copied or linked to the /etc/apache2/conf.d directory. What's the standard way that packages

[us...@httpd] url of internal redirect

2010-05-06 Thread Lyudmila L. Balakireva
Hi, I have output filter at AP_FTYPE_CONNECTION - 1 moment : ap_register_output_filter("MY_TA_OUT3", ta_out_filter3,NULL, AP_FTYPE_CONNECTION - 1); and I determine the url of request as const char *uri = r->unparsed_uri; but we have site with does redirect from www.company.org/ to www.co

[us...@httpd] mod_expires > Why are both the Expires and Cache-Control HTTP headers set?

2010-05-06 Thread Geoff Millikan
The HTTP spec linked below says, "Servers specify explicit expiration times using *either* the Expires header, or the max-age directive of the Cache-Control header." So why then does mod_expires set *both* the Expires HTTP header *and* the max-age directive of the Cache-Control HTTP header? It's

Re: [us...@httpd] Redirect question

2010-05-06 Thread John . C . Kennedy
> > I get the same looping result. (I shortened application to app because > I am too lazy to type all that!): > The requested URL > /appappappappappappappappappappappappappappappappappappappappapp was > not found on this server. Did you remove any other Redirect rules in your VirtualHost conta

Re: [us...@httpd] apxs: not found

2010-05-06 Thread Sakthi Esakiappan
Hello, Check the following steps 1. I could see the path variable is not set. Add the following lines to the homedirectory/.bash_profile PATH=$PATH:/usr/local/apache2/bin:/usr/local/bin/ now reboot the computer to take this effect, if the system can't rebooted then just execute this in the shell #

Re: [us...@httpd] apxs: not found

2010-05-06 Thread Tapan Maheshwari
--- On Wed, 5/5/10, Sakthi Esakiappan wrote: From: Sakthi Esakiappan Subject: Re: [us...@httpd] apxs: not found To: users@httpd.apache.org Date: Wednesday, May 5, 2010, 3:19 PM Also post cat /usr/local/apache2/bin/apxs On 5 May 2010 19:38, Hendrik Schmieder wrote: Tapan Maheshwari schri

Re: [us...@httpd] apxs: not found

2010-05-06 Thread Tapan Maheshwari
it has the permission to read,write,execute.-rwxrwxrwx Thanks --- On Wed, 5/5/10, Hendrik Schmieder wrote: From: Hendrik Schmieder Subject: Re: [us...@httpd] apxs: not found To: users@httpd.apache.org Date: Wednesday, May 5, 2010, 3:08 PM Tapan Maheshwari schrieb: > YES, > i am executing this

Re: [us...@httpd] Send email upon HTTP response 500

2010-05-06 Thread Jarl Friis
Jarl Friis writes: > Nick Kew writes: > >> On 5 May 2010, at 10:09, Jarl Friis wrote: >> >>> Hi. >>> >>> I am looking for a module that can send me emails every time a HTTP >>> 500 Response is returned to the user. >> >> Why not hook that in to the logging? > > I think I got it... > > Use 'Set

[us...@httpd] Authentication for HTTP_USER_AGENT

2010-05-06 Thread Evuraan
I use a simple .htaccess file to protect a folder: AuthUserFile /blah/blah/.htpasswd AuthGroupFile /dev/null AuthName "my music store" AuthType Basic require valid-user it works well. I would like to whitelist a specific HTTP_USER_AGENT ( iphones, specifically) so that they're let in w/o any p

Re: [us...@httpd] Send email upon HTTP response 500

2010-05-06 Thread Jarl Friis
Nick Kew writes: > On 5 May 2010, at 10:09, Jarl Friis wrote: > >> Hi. >> >> I am looking for a module that can send me emails every time a HTTP >> 500 Response is returned to the user. > > Why not hook that in to the logging? I think I got it... Use 'SetEnvIf' directive to detect response 50