virtualhost/rewrite help needed

This is a discussion on virtualhost/rewrite help needed within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi I have a (probably simple) vh (and maybe rewrite?) problem - the rule is simple at least and should work ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-21-2003
Florian Konnertz
 
Posts: n/a
Default virtualhost/rewrite help needed

Hi

I have a (probably simple) vh (and maybe rewrite?) problem - the rule is
simple at least and should work IMO - it's strange to me why it doesn't.

This is what i do:

NameVirtualHost 217.160.75.67

### ...several vh...

<VirtualHost openspirit.de>
ServerName openspirit.de
ServerAlias www.openspirit.de
RewriteEngine on
RewriteLogLevel 1
RewriteRule ^/(.*)$
http://coforum.org:9080/VirtualHostBase/http/openspirit.de:80/openspirit/VirtualHostRoot/$1
[P]
</VirtualHost>

The domain openspirit.de is simply forwarded to the servers IP
(217.160.75.67). Accessing http://openspirit.de brings me to the main
DocumentRoot, this VirtualHost section is untouched, instead the default
VH is served as can be seen from the default access_log:
62.146.33.60 - - [22/Jul/2003:01:45:25 +0200] "GET / HTTP/1.1" 200 545
..
Here's the default VH section...
<VirtualHost 217.160.75.67>
### ...
DocumentRoot /home/u8491898
ErrorLog /var/log/httpd/u8491898-error_log
CustomLog /var/log/httpd/u8491898-access_log common
### ....
</VirtualHost>


Why does it not use my VH section ??

An analogue config works, with the difference that the domain is
forwarded from a dyndns service not a "real" domain provider's header
redirect (here) (I tried also with URL-hiding, same effect)
(Apache 1.3.19)


TIA for hints,

Florian


--
Florian Konnertz --- http://www.florian-konnertz.de
http://openspirit.homelinux.net/noowiki/FrontPage
ZWiki about all topics, especially consciousness research
and wisdom traditions

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:30 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0