On 5/2/07, Dmitry Hazin [EMAIL PROTECTED] wrote:
I tried the following directives to force redirect:
Well, I think the technique of having two VirtualHosts is clearer,
but anyway...
RewriteCond %{HTTP_HOST} ^xx\.site\.com [NC]
RewriteCond %{HTTP_HOST} ^$
RewriteRule ^/(.*)
Yes, that was my mistake. Anyway, without that line it didn't work too :(
It seems that apache doesn't read RewriteRule directive after it had
read ServerAlias one..
What do you mean the technique of having two VirtualHosts?
We do have 2 virtualhosts: one for www.site.com and one for www.site.ru
On 5/2/07, Dmitry Hazin [EMAIL PROTECTED] wrote:
Yes, that was my mistake. Anyway, without that line it didn't work too :(
It seems that apache doesn't read RewriteRule directive after it had
read ServerAlias one..
No, that's not true. As I said, if you want to debug mod_rewite you
need to use
Ok, I tried your method and it worked fine for me! I don't think that
I need to spend much time debugging rewriterules so I will stay with
it.
Thanks in advance!
2007/5/2, Joshua Slive [EMAIL PROTECTED]:
On 5/2/07, Dmitry Hazin [EMAIL PROTECTED] wrote:
Yes, that was my mistake. Anyway, without
I tried the following directives to force redirect:
RewriteCond %{HTTP_HOST} ^xx\.site\.com [NC]
RewriteCond %{HTTP_HOST} ^$
RewriteRule ^/(.*) http://www.site.ru/some/location/$1 [L,R=301]
But still no success; it opens the index page of the
http://www.site.ru when typing
Hi there,
I searched for a while but couldn't point out what is the right way to
do the following:
We have the following virtualhost configuration:
...
ServerName www.site.ru
DocumentRoot /home/www/ru.site.www
ServerAlias xx.site.com
...
What I need is to redirect from
On 4/30/07, Dmitry Hazin [EMAIL PROTECTED] wrote:
What is the correct way to configure apache so it will redirect from
xx.site.com to http://www.site.ru/some/location ?
See:
http://wiki.apache.org/httpd/Recipes/CanonicalHostNames
Joshua.
: Thursday, January 11, 2007 11:11 AM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] ServerAlias with Apache 2.0.40
Hi all,
I'm tryint to test one virtual host with some alias.
My conf is:
VirtualHost 193.168.2.12:80
ServerName www.nombre.es
ServerAlias www.nombre.net www.nombre.com www.nombre.org
Hi all,
I'm tryint to test one virtual host with some alias.
My conf is:
VirtualHost 193.168.2.12:80
ServerName www.nombre.es
ServerAlias www.nombre.net www.nombre.com www.nombre.org
/VirtualHost
I've seen that I could use ServerAlias with the same domain:
www1.nombre.es www2.nombre.es
-Original Message-
From: cristina [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 11:11 AM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] ServerAlias with Apache 2.0.40
Hi all,
I'm tryint to test one virtual host with some alias.
My conf is:
VirtualHost
-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Friday, June 09, 2006 5:21 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] ServerAlias
On 6/9/06, Rainer Sokoll [EMAIL PROTECTED] wrote:
On Fri, Jun 09, 2006 at 06:00:27PM +0300, OOzy Pal wrote
When I type admin.b1.com in Firefox or Lynx, I get SERVER NOT FOUND error
My VH is as follows:
NameVirtualHost *
VirtualHost *
Directory /var/www
Options FollowSymLinks
AllowOverride None
Allow from All
/Directory
DirectoryIndex index.php
ServerName
On Fri, Jun 09, 2006 at 06:00:27PM +0300, OOzy Pal wrote:
When I type admin.b1.com in Firefox or Lynx, I get SERVER NOT FOUND error
Since there is no A record (DNS) for admin.b1.com:
~ host admin.b1.com
Host admin.b1.com not found: 3(NXDOMAIN)
Rainer
On 6/9/06, Rainer Sokoll [EMAIL PROTECTED] wrote:
On Fri, Jun 09, 2006 at 06:00:27PM +0300, OOzy Pal wrote:
When I type admin.b1.com in Firefox or Lynx, I get SERVER NOT FOUND error
Since there is no A record (DNS) for admin.b1.com:
~ host admin.b1.com
Host admin.b1.com not found:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michael D Schleif wrote:
Apache/1.3.33
ServerAlias
[A] Is there a limit to how long a ServerAlias can be? Characters?
Words?
If it's a valid hostname, you can use it in ServerAlias.
[B] Can I use multiple (more than one) ServerAlias
Apache/1.3.33
ServerAlias
[A] Is there a limit to how long a ServerAlias can be? Characters?
Words?
[B] Can I use multiple (more than one) ServerAlias line? For large
numbers of aliases, this may improve readability and manageability.
What do you think?
--
Best Regards,
mds
mds
16 matches
Mail list logo