# apache virtualhost config

**URL:** https://forum.shopware.com/t/apache-virtualhost-config/59888
**Category:** Installation / Einstieg
**Created:** [6. Juni 2019 um 09:24 UTC](https://forum.shopware.com/t/apache-virtualhost-config/59888 "2019-06-06T09:24:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wontfix](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@wontfix](https://forum.shopware.com/u/wontfix)
#### Post date: [6. Juni 2019 um 09:24 UTC](https://forum.shopware.com/t/apache-virtualhost-config/59888/1 "2019-06-06T09:24:28Z")

</div>

die apache vhost example config in [https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/installation-guide](https://docs.shopware.com/en/shopware-platform-dev-en/getting-started/installation-guide)  
sieht momentan so aus:

```
   ServerName "HOST_NAME"
   DocumentRoot _DEVELOPMENT_DIR_/public

   
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
   

   ErrorLog ${APACHE_LOG_DIR}/shopware-platform.error.log
   CustomLog ${APACHE_LOG_DIR}/shopware-platform.access.log combined
   LogLevel debug

```

und mir ist folgendes aufgefallen:

- „HOST\_NAME“ braucht keine „“
- `Order allow,deny`&nbsp;und `allow from all` sind apache 2.2 optionen [Upgrading to 2.4 from 2.2 - Apache HTTP Server Version 2.4](http://httpd.apache.org/docs/current/upgrading.html) (und shopware requirements sagt wir brauchen apache 2.4)
- wieso ist DocumentRoot und Directory nicht dieselbe? (kurze test mit `Directory _DEVELOPMENT_DIR_/public` scheint auch zu funktionieren)

ps. apache macros sind cool für multiple shopware shops in eine machine (diese example ist für debian basierende distros):

```
tee /etc/apache2/conf-available/shopware-vhost-macro.conf <
        
            ServerName $host
            DocumentRoot "/home/vagrant/web/$host/public"
            SSLEngine on
            SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
            SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
            
                Options Indexes FollowSymLinks MultiViews
                Require all granted
                AllowOverride all
            
        
    
EOF
tee /etc/apache2/sites-available/shopware.vanilla.conf <

```

&nbsp;
