Ja mam tiez problem s Apache na virtualhoste
Pouzivam serverove Ubuntu + apache a potrebujem pre uzivatelov spristupnit zlozku, na ktorej si budu moct testovat vlastne webove stranky, bez potreby kopirovat ich do defaultneho adresara /var/www
Pre uzivatela som vytvoril zlozku /home/lacko/public_html a vypis konfiguraku v /etc/apache2/sites-available vyzera takto
Kód:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName dev.lacko.com
DocumentRoot /home/lacko/public_html
<Directory />
Options FollowSymLinks +ExecCGI
AllowOverride None
</Directory>
<Directory /home/lacko/public_html>
Options Indexes FollowSymLinks MultiViews +ExecCGI
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /home/lacko/public_html/cgi-bin/
<Directory "/home/lacko/public_html/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>
do etc/hosts som na prvy riadok pridal
Kód:
127.0.0.1 localhost dev.lacko.com
ale zvonku mi funguje len pristup do zlozky /var/www, z localhostu to bezi.
Neviem preto ako moju novovytvorenu zlozku spristupnit aj na internete