Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread aparna Puram
Hello Spliff, Well actually to explain the complete scenario, RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{REQUEST_URI} The above rewirte is set to redirect all the http requests to https request. It is working fine when I give the http:// it is rewriting to https:// bu

Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread SpliFF
On 18/03/12 15:02, aparna Puram wrote: > Hello Daniel/Mathijs, > > There is only one virtual host. > > server name is :selecvcp1.sw.ericsson.se > Dns name for that server is : select.ericsson.se > > both will redirect to the same apache

Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread aparna Puram
Hello Daniel/Mathijs, There is only one virtual host. server name is :selecvcp1.sw.ericsson.se Dns name for that server is : select.ericsson.se both will redirect to the same apache when I use http:selectvcp1.sw.ericsson.se, I m being redirected to https://select.ericsson.se. However, When i ty

Re: [users@httpd] site loads correctly using lan ip, but not from other computers on same lan

2012-03-17 Thread Serge Fonville
Also, does your URL change when you visit the pages. Since I'd expect proxypass and proxypassreverse to refer to the same url Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Google!! They need to add GAL support on Android (star to agree) http://code.g

Re: [users@httpd] site loads correctly using lan ip, but not from other computers on same lan

2012-03-17 Thread Serge Fonville
Hi, Two things: Have you read into AllowCONNECT Have you read the logs and could you post any relevant entries HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Google!! They need to add GAL support on Android (star to agree) http://code.google.com/p

[users@httpd] site loads correctly using lan ip, but not from other computers on same lan

2012-03-17 Thread Joon Lee
Hi, I've got a configuration using ProxyPass for a webapp running on localhost to be accessible from example.com: and a wordpress blog on example.com:80. the httpd.conf vhost setting like this: ServerAdmin ad...@example.com ServerName www.example.com ServerAlias example.com # Indexes + Dire

Re: [users@httpd] Different pages served depending on IP address or domain addressing

2012-03-17 Thread Prasanna Mulgaonkar
The ServerAlias directive is only applicable in the virtual host section. Do I need to add a vhost definition? --p On 03/17/2012 10:21 AM, Anam Ali Khan wrote: Try this! UseCanonicalName Off ServerAlias www.mydomain.com Remove :80 in ServerName directive Make sure DNS records are properly co

Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread Daniel Ruggeri
On 3/17/2012 12:58 PM, aparna Puram wrote: > Hello All, > > I am working on a project where I have to redirect all the http > requests to https protocol. I have configured the following rewrite > rules and it is working fine. > > RewriteEngine On > RewriteCond %{SERVER_PORT} !^443$ > RewriteRule ^

Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread Mathijs
All you need is an additional virtualhost that will catch all requests that need to be redirected. See http://wiki.apache.org/httpd/CanonicalHostNames for details on this. Note that the example there redirects from www.example.comto example.com, but the same principles apply. Kind regards, Mathijs

[users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread aparna Puram
Hello All, I am working on a project where I have to redirect all the http requests to https protocol. I have configured the following rewrite rules and it is working fine. RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://$1 [L,R] then http:// is redirecting to htt

Re: [users@httpd] Different pages served depending on IP address or domain addressing

2012-03-17 Thread Anam Ali Khan
Try this! UseCanonicalName Off ServerAlias www.mydomain.com Remove :80 in ServerName directive Make sure DNS records are properly configure. -Anam From: Prasanna Mulgaonkar To: users@httpd.apache.org Sent: Saturday, 17 March 2012, 5:17 Subject: [users@http

Re: [users@httpd] Issue with trailing slashes after rewrite

2012-03-17 Thread Igor Cicimov
Correction RewriteCond %{HTTP_HOST} ^(.*)\.(.*)\.com$ RewriteRule ^/(.*) /%2/%1/$1 [P,L] On Sun, Mar 18, 2012 at 1:05 AM, Igor Cicimov wrote: > RewriteCond %{HTTP_HOST} ^(.*)\.(.*)\.com$ > RewriteRule ^/(.*) /%2/%1 [P,L] > On Mar 18, 2012 12:58 AM, "Nala Gnirut" wrote: > >> Thanks, for the i

Re: [users@httpd] Issue with trailing slashes after rewrite

2012-03-17 Thread Igor Cicimov
RewriteCond %{HTTP_HOST} ^(.*)\.(.*)\.com$ RewriteRule ^/(.*) /%2/%1 [P,L] On Mar 18, 2012 12:58 AM, "Nala Gnirut" wrote: > Thanks, for the info. Unfortunately the suggested rule does not seem to > work as expected. > > Let me further explain what I'm trying to achieve: > > All *.mydomain.com su

Re: [users@httpd] Issue with trailing slashes after rewrite

2012-03-17 Thread Nala Gnirut
Thanks, for the info. Unfortunately the suggested rule does not seem to work as expected. Let me further explain what I'm trying to achieve: All *.mydomain.com subdomains point to the same /mydomain/ local path as DocumentRoot (can't change this behavior due to shared hosting restrictions) and I'