Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] Gentoo Apache2 VHost Probleme
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
Heinzelmännchen
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 179
Location: MV, Germany

PostPosted: Fri Apr 23, 2004 2:05 pm    Post subject: [OT] Gentoo Apache2 VHost Probleme Reply with quote

Hallo zusammen,

ich nutze den Apache 2 auf Gentoo. Wenn ich den Apache so starte, dann wird auch die Standard Seite vom Apache angezeigt. Jetzt wollte ich mal ein VHost anlegen und danach gibt es dann probleme. Die vhost werden hier in /etc/apache2/conf/vhosts/vhosts.conf geschrieben. Welche wiederum in /etc/apache2/conf/apache2.conf Includiert wird.

Nach dem ich dann die Seite Aufrufe, bekomme ich:
Code:
Forbidden

You don't have permission to access /info.php on this server.
Apache/2.0.48 (Gentoo/Linux) PHP/4.3.6RC2 Server at convert.*****.no-ip.org Port 80


In der error.log wir folgendes geschieben:
Code:
[Wed Apr 21 12:30:53 2004] [error] [client 217.222.12.123] client denied by server configuration: /var/www/convert/htdocs/info
.php

Jedoch wo wird das geklärt? In der /etc/hosts muß ich die Sub Domain ja nicht eintragen, da ich ja bei no-ip.org Wildcards aktiviert habe.

Kann mir einer vielleicht in der Hinsicht weiterhelfen? Bin halt noch NewBee und ein wenig unerfahren in dieser Hinsicht. Mir kommt es so vor, als wenn es Rechteprobleme zwischen dem Verzeichnis und Apache2 gibt. Doch kann mir dazu keinen Reim drauf machen. Vielleicht kennt ja einer diese Problematik, auch wenns ein wenig OffTopic ist.

MfG
Heinzelmännchen
_________________
Gute Dinge, will Weile haben!
Back to top
View user's profile Send private message
wfx
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2003
Posts: 95
Location: Cave

PostPosted: Fri Apr 23, 2004 7:50 pm    Post subject: Reply with quote

Hallo,

Ich bin nicht so sattelfest aber zumindes habe ich es bei so hinbekommen :)

Quote:

bei no-ip.org Wildcards aktiviert habe.

Wildcard ist schon mal gut ;-)
Ich denke es liegt an deiner config.
So sieht das bei mir aus:

Code:

...
NameVirtualHost *:80

<VirtualHost *:80>
        ServerName www.anchor.ath.cx
        ServerAlias anchor.ath.cx
        ServerAdmin webmaster@anchor.ath.cx

        DocumentRoot /opt/lampp/www/anchor.ath.cx/htdocs
        CustomLog /opt/lampp/www/anchor.ath.cx/log/access.log combined
        ErrorLog /opt/lampp/www/anchor.ath.cx/log/error.log
        ScriptAlias /opt/lampp/cgi-bin /opt/lampp/www/anchor.ath.cx/cgi-bin
        <Directory /opt/lampp/www/anchor.ath.cx/cgi-bin>
                Options ExecCGI
        </Directory>
</VirtualHost>

<VirtualHost *:80>
        ServerName www.teg.anchor.ath.cx
        ServerAlias teg.anchor.ath.cx
        ServerAdmin webmaster@teg.anchor.ath.cx

        DocumentRoot /opt/lampp/www/vhost/teg.anchor.ath.cx/htdocs
        php_value include_path "/opt/lampp/www/vhost/teg.anchor.ath.cx/htdocs"
        CustomLog /opt/lampp/www/vhost/teg.anchor.ath.cx/log/access.log combined
        ErrorLog /opt/lampp/www/vhost/teg.anchor.ath.cx/log/error.log
        ScriptAlias /cgi-bin /opt/lampp/www/vhost/teg.anchor.ath.cx/cgi-bin
        <Directory /opt/lampp/www/vhost/teg.anchor.ath.cx/cgi-bin>
                Options ExecCGI
        </Directory>
</VirtualHost>
...


So erreiche ich dann im LAN
http://anchor.ath.cx und http://teg.anchor.ath.cx

Über das WAN leider nur anchor.ath.cx (und ich weis noch nicht warum)

Möglicherweise hilft es dir.

wfx
PS: Serverneustart nicht vergessen :)
Back to top
View user's profile Send private message
Heinzelmännchen
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 179
Location: MV, Germany

PostPosted: Sat Apr 24, 2004 3:09 pm    Post subject: Reply with quote

Problem gelöst. Musste lediglich in der /etc/apache2/conf/commonapache2.conf die 1. Zeile diese Blocks abändern.
Code:
<Directory /var/www/localhost/htdocs>
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options -Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
    AllowOverride All
#
# Controls who can get stuff from this server.
#
    <IfModule mod_access.c>
      Order allow,deny
      Allow from all
    </IfModule>
</Directory>

Abgeändert in
Code:
<Directory /var/www/*>
.

Und nun klappt es auch mit den VHOST!

Gruß
Heinzelmännchen
_________________
Gute Dinge, will Weile haben!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum