httpd-users-de mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Knabl <dan...@knabl.com>
Subject Re: Problem mit Debian/sid und apache2 v. 2.2.4
Date Wed, 01 Aug 2007 17:01:23 GMT
Am Wed, 1 Aug 2007 11:24:18 +0200 schrieb Paul Puschmann
<lnx@uzulabs.net>:

> Zeig doch mal deine Einstellungen der vhosts. Dort scheinen die
> Zuweisungen nicht zu funktionieren.

Tag erstmal,

Danke für die schnelle Antwort. Meine Vhosts, für jede Domain ein File,
das in der apache2.conf "geladen" wird, sehen wie unten aus (IP und
DNS geändert), bis auf den "rewrite" Teil, der kommt nur in einem Host vor.


[ /etc/apache2/sites-enabled/domainname.at ]

NameVirtualHost W.X.Y.Z:80
NameVirtualHost W.X.Y.Z:443

<VirtualHost domainname.at:80>
        ServerName domainname.at
        ServerAdmin webmaster@domainname.at
        ServerAlias www.domainname.at
        DocumentRoot /home/www-vhosts/domainname.at
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /home/www-vhosts/domainname.at>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        #AllowOverride None
        AllowOverride All
        Order deny,allow
        Deny from all
        Allow from 192.168.0.0/255.255.255.0 127.0.0.0/255.0.0.0
    </Directory>

  UserDir public_html
  UserDir disabled root

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options Indexes SymLinksIfOwnerMatch IncludesNoExec FollowSymLinks
</Directory>

<Directory /home/*/public_html/cgi-bin/>
    Options ExecCGI
    SetHandler cgi-script
</Directory>

AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

## mldonkey rewrite
  RewriteEngine on
  ProxyRequests on
        RewriteRule /mld http://localhost:15631/$1 [P,L]
        RewriteRule /(submit.*) http://localhost:15631/$1 [P,L]
        RewriteRule /(results.*) http://localhost:15631/$1 [P,L]
        RewriteRule /(commands.*) http://localhost:15631/$1 [P,L]
        RewriteRule /(oneframe.*) http://localhost:15631/$1 [P,L]
        RewriteRule /(noframe.*) http://localhost:15631/$1 [P,L]
        RewriteRule /(files.*) http://localhost:15631/$1 [P,L]
        RewriteRule /(h.css) http://localhost:15631/$1 [P,L]
        RewriteRule /(dh.css) http://localhost:15631/$1 [P,L]
        RewriteRule /(i.js) http://localhost:15631/$1 [P,L]
        RewriteRule /(di.js) http://localhost:15631/$1 [P,L]
  ProxyPassReverse /(.*) http://localhost:15631/$1

</VirtualHost>

<VirtualHost domainname.at:443>

    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/domainname.at.crt
    SSLCertificateKeyFile /etc/apache2/ssl/domainname.at.key
    SSLCACertificateFile /etc/apache2/ssl/cacert.crt
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    SSLProtocol all
    SSLCipherSuite HIGH:MEDIUM

        ServerName domainname.at
        ServerAdmin webmaster@domainname.at
        ServerAlias www.domainname.at
        DocumentRoot /home/www-vhosts/domainname.at
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /home/www-vhosts/domainname.at>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride All
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        #AllowOverride None
        AllowOverride All
        Order deny,allow
        Deny from all
        Allow from 192.168.0.0/255.255.255.0 127.0.0.0/255.0.0.0 red.acp.at
    </Directory>

# UserDir is now a module
UserDir public_html
UserDir disabled root

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>

<Directory /home/*/public_html/cgi-bin/>
    Options ExecCGI
    SetHandler cgi-script
</Directory>

AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

</VirtualHost>

 
> Paul
> -- 
> : Bitte einen Realname benutzen, unter dem Zitat antworten
> : und einfache Text-Mails senden (kein HTML).
> : Danke.

LG
Daniel

PS: hoffe das passt so, mit dem Mail. Falls noch was auffällt, das wichtig ist,
jedoch nichts mir meinem primären Problem zu tun hat, dann bitte ich um Mail
direkt an mich (evtl. CC an die Liste) - vielen Danke.

-- 
Daniel Knabl
aio4u.com/~daniel                 daniel@aio4u.com
PGP/GPG Fingerprint - please send signed mail only
A069 671B 39F2 E9B9 FB34  68BB 4BEC 1344 C8A4 3F0B

Mime
View raw message