Thread: Virtual Host ?
hello,
first of ask apologize english. second i'm newbie linux , ubuntu 11.10 first linux-product installed on virtualbox (surprise works).
there 1 thing can't solve. i've installed apache2, mysql, php , phpmyadmin , when opening firefox , trying launch localhost message works. everythings works fine me. want add named virtual hosts , therefore added followings folders:
a) /var/www/html/web229/html
b) /var/www/html/web652/html
, in /etc/apache2/sites-available created files web229 , web652 following settings:
andcode:<virtualhost *> serveradmin admin@localhost servername web229 documentroot /var/www/html/web229/html/ <directory /var/www/html/web229/html/ > option indexes followsymlinks multiviews allowoverride none allow </directory> errorlog /var/log/apache2/error.log loglevel warn customlog /var/www/html/web229/log/access.log combined serversignature on </virtualhost>
of course i've added index.php / index.html each new site different content.code:<virtualhost *> serveradmin admin@localhost servername web652 documentroot /var/www/html/web652/html/ <directory /var/www/html/web652/html/ > option indexes followsymlinks multiviews allowoverride none allow </directory> errorlog /var/log/apache2/error.log loglevel warn customlog /var/www/html/web652/log/access.log combined serversignature on </virtualhost>
after restarting apache , trying launch localhost content site web229.
did wrong?
appreciated.
regards
franz-georg
sorry, forgotton hosts files located @ /etc/hosts
code:127.0.0.1 localhost 127.0.0.1 web229 127.0.0.1 web652
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [ubuntu] Virtual Host ?
Ubuntu
Comments
Post a Comment