Current time: 05-20-2024, 02:54 PM Hello There, Guest! (LoginRegister)


Thread Closed 
[ERLEDIGT]VirtualHost-Eintrag zusätzliche regeln?
Author Message
Kayaro Offline
Junior Member
*

Posts: 79
Joined: Apr 2009
Reputation: -1
Post: #1
[ERLEDIGT]VirtualHost-Eintrag zusätzliche regeln?
Hallo Leute,

kleine Frage bzw. Problem:

ich möchte eine Domain auf eine Subdomain auf einen anderen Server leiten und möchte dazu diesen eintrag nutzen. Wo genau trage ich diesen nun ein damit es Funktioniert?

Code:
RewriteEngine on
RewriteRule ^(.*)$ http://sub.domain.tld$1 [P]
ProxyRequests On
ProxyVia On
<Proxy *>
Order deny,allow
Deny from all
Allow from all
</Proxy>

Hoffe mir kann da jemand helfen.
danke
(This post was last modified: 03-24-2011 05:46 PM by ZooL.)
03-24-2011 05:20 AM
Find all posts by this user
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #2
RE: VirtualHost-Eintrag zusätzliche regeln?
Ich vermute mal einfach in den docRoot als .htaccess-Datei.

Knut
03-24-2011 05:59 AM
Find all posts by this user
Kayaro Offline
Junior Member
*

Posts: 79
Joined: Apr 2009
Reputation: -1
Post: #3
RE: VirtualHost-Eintrag zusätzliche regeln?
Wenn ich die ganz normal als .htaccess speicher bekomme ich einen 500 und im Log steht:

[Wed Mar 23 21:12:26 2011] [alert] [client 213.218.15.189] /var/www/virtual/xxxx/htdocs/.htaccess: ProxyRequests not allowed here
03-24-2011 06:13 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: VirtualHost-Eintrag zusätzliche regeln?
Versuchs in die /etc/apache2/ispcp/<domain>.conf einzutragen

/J
03-24-2011 07:51 AM
Visit this user's website Find all posts by this user
Kayaro Offline
Junior Member
*

Posts: 79
Joined: Apr 2009
Reputation: -1
Post: #5
RE: VirtualHost-Eintrag zusätzliche regeln?
(03-24-2011 07:51 AM)joximu Wrote:  Versuchs in die /etc/apache2/ispcp/<domain>.conf einzutragen

/J

Ich danke dir, so funktionts!
03-24-2011 07:54 AM
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)