Virtual Host & SSL

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

Virtual Host & SSL

Postby duffy6 » 26. October 2009 21:56

Hallo!

Hab das ganze Wochenende rumprobiert und kriegs einfach nicht hin.

Mein Apach2 soll unter Ubuntu 8.04.3 mal so laufen:
- http://lokale_IP/ soll weitergeleitet werden auf /var/www/webaccess
- Der Zugang über Port 80 soll deaktiviert werden bzw. automatisch an https weitergeleitet werden.
- Realisierung von https (Zertifikat hab ich schon erstellt)

Hiermal meine /etc/apache2/sites-available/default

Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

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

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
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
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>


</VirtualHost>


und da ich Zarafa installiert hab, gibt es auch noch eine Datei /etc/apache2/sites-available/zarafa-webaccess
Code: Select all
Alias /webaccess "/usr/share/zarafa-webaccess"

<Directory /usr/share/zarafa-webaccess/>
DirectoryIndex index.php
Options -Indexes +FollowSymLinks
AllowOverride Options
</Directory>
duffy6
 
Posts: 1
Joined: 26. October 2009 21:46

Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 13 guests