Versionsunterschiede von Test Server / Setting Up Virtual Hosts




← Vorherige Änderung
Nächste Änderung →




26 26 %%echo -e 'DocumentRoot "srv/www/htdocs/site1"\nServerName "www.linuxhelp1.com"' > /etc/apache2/conf.d/vhost.conf %%
27 27
28 28 Did it work?
29   %% cat /etc/apache2/conf.d/vhost.conf
30   DocumentRoot "srv/www/htdocs/site1"
31   ServerName "www.linuxhelp1.com" %%
  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" %%
32 36
33 37
34 38 ----
35 39
  40  
36 41 /etc/hosts
  42  
  43  
  44 /etc/apache2/httpd.conf  
37 45 /etc/apache2/conf.d/vhost.conf
  46 /etc/apache2/vhosts.d/*.conf  
  47  
  48  
  49 /etc/apache2/default-server.conf  
  50  
38 51
39 52
40 53 **/opt/lampp/etc/httpd.conf**