Exercise Apache
Create a Virtual Host
Create a directory containing a fileindex.html and a index.php fileIn the file
/etc/hosts (for Unix), or /Windows/System32/drivers/etc (for Windows) redirect the adress www.mysite.ch to the IP address 127.0.0.1Create a new virtual host on your apache server.
Define its document root to be your new directory. Define the default file to be
index.php (at first and index.html after)
Password Protect a directory
Create a new directoryrestricted containing an index.php.
Define a .htaccess file for restricting the access to this directory to one person. User: toto; Password: titi;
Related Pages
Contact
Prof. Dr. Emmanuel Benoist
Berner Fachhochschule - TI
Quellgasse 21
CH-2501 Biel/Bienne
Switzerland
Mail: emmanuel.benoist (at) bfh.ch
Berner Fachhochschule - TI
Quellgasse 21
CH-2501 Biel/Bienne
Switzerland
Mail: emmanuel.benoist (at) bfh.ch
Social Networks
Follow
me
on
Linkedin, Scholar
& Research gate