-
Notifications
You must be signed in to change notification settings - Fork 0
Home
arogarth edited this page Nov 23, 2015
·
8 revisions
Dynamic-WPAD is a small project to deploy different wpad.dat files in a network depend on the source ip-address.
- Apache2
- PHP5
- MySQL-Database
Create database for dynamic_wpad
echo "create database wpad;" | mysql
Clone Project to local web directory
git clone https://github.com/arogarth/dynamic_wpad /var/www/dynamic_wpad
Install database
mysql < /var/www/dynamic_wpad/etc/database.sql
Copy and edit config.php
cp /var/www/dynamic_wpad/config.php.example /var/www/dynamic_wpad/config.php
nano /var/www/dynamic_wpad/config.php
Create apache2 site-config /etc/apache2/sites-available/wpad.conf
<VirtualHost *:80>
ServerName wpad.<domain>.<tld>
DocumentRoot /var/www/dynamic_wpad
</VirtualHost>
a2ensite wpad
service apache2 reload