Ich versuche seit Stunden Virtual Hosts einzurichten, und es geht einfach nicht.
Folgend meine Einstellungen:
ports.conf
- Code: Select all
NameVirtualHost *:80
default in sites-available
- Code: Select all
<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
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>
virtualhosts in sites-available , diese habe ich hinzugefügt und verlinkt
- Code: Select all
<VirtualHost *:80>
ServerName www.domain1.at.tf
DocumentRoot /home/rubys/work/ordner1/public/
<Directory /home/rubys/work/ordner1/public>
RailsEnv "development"
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName www.domain2.at.tf
DocumentRoot /home/rubys/work/ordner2/public/
<Directory /home/rubys/work/ordner2/public>
RailsEnv "development"
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
hosts unter /etc/hosts
- Code: Select all
127.0.0.1 www.domain1.at.tf
127.0.0.1 www.domain2.at.tf
egal was ich aufrufe mit meinem Browser IP, domain1, domain2
ich lande jedesmal im default host also /var/www
starte ich den Server kommt folgendes:
- Code: Select all
Debian-50-lenny-64-LAMP:/etc/apache2# /etc/init.d/apache2 restart
Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.147 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.147 for ServerName
.
Debian-50-lenny-64-LAMP:/etc/apache2#
könnte es vl daran liegen?
vielleicht findet ja jemand das Problem.
LG Markus