Versionsunterschiede von Test Server / Setting Up Virtual Hosts
| 23 | /etc/apache2/conf.d/vhost.conf | 23 | /etc/apache2/conf.d/vhost.conf |
|---|---|---|---|
| 24 | 24 | ||
| 25 | %% sudo su%% | 25 | %% sudo su%% |
| 26 |
%%echo -e 'DocumentRoot "srv/www/htdocs/ |
26 | %%echo -e 'DocumentRoot "srv/www/htdocs/myproject"\nServerName "myproject"' > /etc/apache2/conf.d/vhost.conf %% |
| 27 | 27 | ||
| 28 | Did it work? | 28 | Did it work? |
| 29 | %% cat /etc/apache2/conf.d/vhost.conf%% | 29 | %% cat /etc/apache2/conf.d/vhost.conf%% |
| … | … | … | … |
| 37 | 37 | ||
| 38 | ---- | 38 | ---- |
| 39 | 39 | ||
| 40 | |||
| 40 | /etc/hosts | 41 | /etc/hosts |
| 42 | |||
| 43 | |||
| 44 | /etc/apache2/httpd.conf | ||
| 41 | /etc/apache2/conf.d/vhost.conf | 45 | /etc/apache2/conf.d/vhost.conf |
| 46 | /etc/apache2/vhosts.d/*.conf | ||
| 47 | |||
| 48 | |||
| 49 | /etc/apache2/default-server.conf | ||
| 50 | |||
| 42 | 51 | ||
| 43 | 52 | ||
| 44 | **/opt/lampp/etc/httpd.conf** | 53 | **/opt/lampp/etc/httpd.conf** |