Versionsunterschiede von Test Server / Setting Up Virtual Hosts




← Vorherige Änderung
Nächste Änderung →




35 /etc/apache2/conf.d/vhost.conf 35 /etc/apache2/conf.d/vhost.conf
36 36
37 %% sudo su%% 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 Did it work? 40 Did it work?
41 %% cat /etc/apache2/conf.d/vhost.conf%% 41 %% cat /etc/apache2/conf.d/vhost.conf%%
43 43
44 You should see 44 You should see
45 45
46 %% DocumentRoot "srv/www/htdocs/myproject" 46 %% DocumentRoot "/srv/www/htdocs/myproject"
47  ServerName "myproject" 47  ServerName "myproject"
48  %% 48  %%
49 49