Versionsunterschiede von Test Server / Setting Up Virtual Hosts
| 22 | 22 | |
|---|---|---|
| 23 | 23 | /etc/apache2/conf.d/vhost.conf |
| 24 | 24 | |
| 25 | %% echo -e 'DocumentRoot "\srv/www/htdocs/site1"\ \nServerName www.linuxhelp1.com"\' > /etc/apache2/conf.d/vhost.conf %% | |
| 25 | %% sudo su%% | |
| 26 | %%echo -e 'DocumentRoot "srv/www/htdocs/site1"\nServerName "www.linuxhelp1.com"' > /etc/apache2/conf.d/vhost.conf %% | |
| 27 | ||
| 28 | Did it work? | |
| 29 | %% cat /etc/apache2/conf.d/vhost.conf%% | |
| 30 | ||
| 31 | ||
| 32 | You should see | |
| 33 | ||
| 34 | %% DocumentRoot "srv/www/htdocs/site1" | |
| 35 | ServerName "www.linuxhelp1.com" %% | |
| 36 | ||
| 26 | 37 | |
| 27 | 38 | ---- |
| 28 | 39 |