Versionsunterschiede von Test Server / Setting Up Virtual Hosts
| 59 | 59 | ===Edit configuration file=== |
|---|---|---|
| 60 | 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 | 64 | Example configuration |
| 65 | 65 | %% |
| 66 |
<VirtualHost |
|
| 66 | <VirtualHost 127.0.0.3:80> | |
| 67 | 67 | ServerName myproject |
| 68 | 68 | ServerAdmin webmaster@localhost |
| 69 |
DocumentRoot /srv/www/ |
|
| 70 |
<Directory /srv/www/ |
|
| 69 | DocumentRoot /srv/www/myproject/htdocs | |
| 70 | <Directory /srv/www/myproject/htdocs> | |
| 71 | 71 | Options Indexes FollowSymLinks MultiViews |
| 72 | 72 | AllowOverride None |
| 73 | 73 | Require all granted |