Quantcast
Viewing latest article 4
Browse Latest Browse All 4

Create Virtual Host in Apache

If we want to make the folder /var/www/html/zendFramewok as a virtual hostThen we should have to add the following lines to httpd file
(In Fedora this can be done using terminal by typing gedit /etc/httpd/conf/httpd.conf)

<VirtualHost ∗:80>
ServerName zendFrameworkDocumentRoot "/var/www/html/zendFramework"
</VirtualHost>

then save the file.
Then open /etc/hosts file and add the following line and save it.(In Fedora this can be done using terminal by typing gedit /etc/hosts)

127.0.0.1 zendFramework

Then restart apache

Image may be NSFW.
Clik here to view.
Share


Viewing latest article 4
Browse Latest Browse All 4

Trending Articles