Sok igen okos és igen használhatatlan leírás átolvasása után a következő beállításokkal sikerült elindítanom (a virtual host neve www.tango.xxx):
cd /etc
sudo nano hosts:
127.0.0.1 www.tango.xxx tango.xxx
cd /etc/apache2/
sudo nano ports.conf:
Listen 8080
cd /var/www
sudo mkdir tango_cms
sudo chmod 777 tango_cms
cd /etc/apache2/sites-available
sudo nano www.tango.xxx:
<VirtualHost *:8080>
ServerAdmin webmaster@example.org
ServerName www.tango.xxx
ServerAlias tango.xxx
# Indexes + Directory Root.
DirectoryIndex index.php index.html
DocumentRoot /var/www/tango_cms/
<Directory /var/www/tango_cms/>
Options Indexes FollowSymLinks MultiViews
# pcw AllowOverride None
AllowOverride All
Order allow,deny
allow from all
# This directive allows us to have apache2’s default start page
# in /apache2-default/, but still have / go to the right place
# Commented out for Ubuntu
#RedirectMatch ^/$ /apache2-default/
</Directory>
# CGI Directory
ScriptAlias /cgi-bin/ /var/www/tango_cms/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /var/www/tango_cms/logs/error.log
LogLevel warn
CustomLog /var/www/tango_cms/logs/access.log combined
ServerSignature On
</VirtualHost>
sudo a2ensite www.tango.xxx
sudo /etc/init.d/apache2 reload
Ha változtatni kell a virtual host file-ban, akkor
sudo a2dissite www.tango.xxx
sudo /etc/init.d/apache2 reload
sudo a2ensite www.tango.xxx
sudo /etc/init.d/apache2 reload