Versionsunterschiede von Test Server / Setting Up Virtual Hosts




← Vorherige Änderung
Nächste Änderung →
Version 17 vom 11.05.2023 14:55 ▼
(3 KiB) +140
WikiAdmin




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 DocumentRoot "srv/www/htdocs/site1"
  32 ServerName "www.linuxhelp1.com" %%
  33
26 34
27 35 ----
28 36