Versionsunterschiede von Test Server / Setting Up Virtual Hosts




← Vorherige Änderung
Nächste Änderung →
Version 22 vom 11.05.2023 15:19 ▼
(3 KiB) +247
WikiAdmin

hinzugefĂźgt:
 sudo su	

echo -e 'DocumentRoot "srv/www/htdocs/myproject"\nServerName  "myproject"' > /etc/apache2/conf.d/vhost.conf	

Did it work?
 cat /etc/apache2/conf.d/vhost.conf	

You should see
 DocumentRoot "srv/www/htdocs/site1"
 ServerName  "www.linuxhelp1.com"	

/etc/apache2/httpd.conf
/etc/apache2/vhosts.d/*.conf
/etc/apache2/default-server.conf

entfernt:
 echo -e 'DocumentRoot"\ srv/www/htdocs/site1\"\nServerName  www.linuxhelp1.com"\' > /etc/apache2/conf.d/vhost.conf