Versionsunterschiede von Test Server / Setting Up Virtual Hosts
| 59 | ===Edit configuration file=== | 59 | ===Edit configuration file=== |
|---|---|---|---|
| 60 | https://de.opensuse.org/Apache | 60 | https://de.opensuse.org/Apache |
| 61 | 61 | ||
| 62 |
%% sudo cp /etc/apache2/vhosts.d/vhost.template /etc/apache2/vhosts.d/myproject |
62 | %% sudo cp /etc/apache2/vhosts.d/vhost.template /etc/apache2/vhosts.d/myproject_vhost.conf %% |
| 63 | 63 | ||
| 64 | Example configuration | 64 | Example configuration |
| 65 | %% | 65 | %% |
| 66 |
<VirtualHost |
66 | <VirtualHost 127.0.0.3:80> |
| 67 | ServerName myproject | 67 | ServerName myproject |
| 68 | ServerAdmin webmaster@localhost | 68 | ServerAdmin webmaster@localhost |
| 69 |
DocumentRoot /srv/www/ |
69 | DocumentRoot /srv/www/myproject/htdocs |
| 70 |
<Directory /srv/www/ |
70 | <Directory /srv/www/myproject/htdocs> |
| 71 | Options Indexes FollowSymLinks MultiViews | 71 | Options Indexes FollowSymLinks MultiViews |
| 72 | AllowOverride None | 72 | AllowOverride None |
| 73 | Require all granted | 73 | Require all granted |