You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ed...@ita.org.mo on 2002/08/05 12:09:17 UTC

Problem of rewrite

I can't connect to http://domain.com ( of course http://www.domain.com
alos fail ) according this setting of httpd.cof :

NameVirtualHost 192.168.200.1

<VirtualHost domain.com>
DocumentRoot "/home/domain/html"
ServerAdmin root@domain.com
RewriteEngine on
RewriteRule ^/$ http://www.domain.com
<Directory "/home/domain/html">
 Options Indexes Includes FollowSymLinks MultiViews ExecCGI
 AllowOverride All
 Order allow,deny
 Allow from all
</Directory>
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log common
</VirtualHost>

<VirtualHost www.domain.com>
DocumentRoot "/home/domain/html"
ServerAdmin root@domain.com
<Directory "/home/domain/html">
 Options Indexes Includes FollowSymLinks MultiViews ExecCGI
 AllowOverride All
 Order allow,deny
 Allow from all
</Directory>
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log common
</VirtualHost>

So, can you help me more ?

Thanks,

Edward.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Problem of rewrite

Posted by kaushik kanni <ro...@yahoo.com>.
Hi,
you need to configure your DNS server to map each
hostname to the correct IP address and then configure
the Apache HTTP Server to recognize the different
hostnames. If u have already done this.. then i am not
sure what is to be corrected ..
Rgds



--- EdwardSPL@ita.org.mo wrote:
> I can't connect to http://domain.com ( of course
> http://www.domain.com
> alos fail ) according this setting of httpd.cof :
> 
> NameVirtualHost 192.168.200.1
> 
> <VirtualHost domain.com>
> DocumentRoot "/home/domain/html"
> ServerAdmin root@domain.com
> RewriteEngine on
> RewriteRule ^/$ http://www.domain.com
> <Directory "/home/domain/html">
>  Options Indexes Includes FollowSymLinks MultiViews
> ExecCGI
>  AllowOverride All
>  Order allow,deny
>  Allow from all
> </Directory>
> ErrorLog /var/log/httpd/error.log
> CustomLog /var/log/httpd/access.log common
> </VirtualHost>
> 
> <VirtualHost www.domain.com>
> DocumentRoot "/home/domain/html"
> ServerAdmin root@domain.com
> <Directory "/home/domain/html">
>  Options Indexes Includes FollowSymLinks MultiViews
> ExecCGI
>  AllowOverride All
>  Order allow,deny
>  Allow from all
> </Directory>
> ErrorLog /var/log/httpd/error.log
> CustomLog /var/log/httpd/access.log common
> </VirtualHost>
> 
> So, can you help me more ?
> 
> Thanks,
> 
> Edward.
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org