Versionsunterschiede von Test Server / Setting Up Virtual Hosts




← Vorherige Änderung
Nächste Änderung →




35 35 /etc/apache2/conf.d/vhost.conf
36 36
37 37 %% sudo su%%
38   %%echo -e 'DocumentRoot "srv/www/htdocs/myproject"\nServerName "myproject"' > /etc/apache2/conf.d/vhost.conf %%
  38 %%echo -e 'DocumentRoot "/srv/www/htdocs/myproject"\nServerName "myproject"' > /etc/apache2/conf.d/vhost.conf %%
39 39
40 40 Did it work?
41 41 %% cat /etc/apache2/conf.d/vhost.conf%%
43 43
44 44 You should see
45 45
46   %% DocumentRoot "srv/www/htdocs/site1"
47    ServerName "www.linuxhelp1.com" %%
  46 %% DocumentRoot "/srv/www/htdocs/myproject"
  47  ServerName "myproject"
  48  %%
48 49
49 50
50 51 ----