<VirtualHost *:80>
ServerAdmin info@viptel.dk
ServerName ordersystem.viptel.dk
ServerAlias ordersystem.viptel.dk
# Indexes + Directory Root.
DirectoryIndex index.html index.htm index.php
DocumentRoot /var/vhosts/ordersystem.viptel.dk
# Access to main directory
<Directory /var/vhosts/ordersystem.viptel.dk/>
order allow,deny
allow from all
AllowOverride all
</Directory>
# Access to frontend for all
<Directory /var/vhosts/ordersystem.viptel.dk/frontend/>
order allow,deny
allow from all
</Directory>
# Access to js for all
<Directory /var/vhosts/ordersystem.viptel.dk/js/>
order allow,deny
allow from all
</Directory>
# Access to css for all
<Directory /var/vhosts/ordersystem.viptel.dk/css/>
order allow,deny
allow from all
</Directory>
# Allow access for only some IP
<Directory /var/vhosts/ordersystem.viptel.dk/backend/>
order deny,allow
deny from all
allow from 91.206.90.116 # Viptel
allow from 217.198.217.182 # Viptel kontor
allow from 93.165.146.165 # admin-test
allow from 93.165.146.166 # infoserver
allow from 91.206.90.114 # ts01.viptel.dk
allow from 93.165.146.165 # admin-test.telcogate.as
allow from 80.161.191.70 # relaunch2010.viptel.dk
allow from 93.165.146.170 # relaunch2010.viptel.dk -vlan120
allow from 127.0.0.1 # localhost
allow from 212.130.22.82 # mpls.vipte
</Directory>
# Logfiles
ErrorLog /var/log/apache2/ordersystem.viptel.dk_error.log
CustomLog /var/log/apache2/ordersystem.viptel.dk_access.log combined
</VirtualHost>