Installing
-
2. Enabling Apache2 Rewrite
Now to Enable Apache2 Rewrite Module
Simply play:Copysudo su -c "a2enmod rewrite"
How to Create an Apache 2 Virtual Host on Zorin OS.
Here GNU/Linux Zorin OS Apache2 Virtual-Host Quick StartHow to Getting-Started with Apache 2 Virtual Hosts on Zorin OS Linux -
3. Setting up Domain
Again to Setup an Apache2 Virtual Host for Rewrite
Edit the Configuration File:Copysudo su -c "nano /etc/apache2/sites-available/[myDomainName].conf"
Append inside the VirtualHost Section:
Copy<Directory /var/www/html/[mySite]> Options Indexes FollowSymLinks AllowOverride All </Directory>
Ctrl+Shift+v to Paste Content on nano
Ctrl+x to Save and Exit from nano Editor :) -
4. Restarting Apache
Finally, Restart Apache2 Web Server
Simply with:Copysudo service apache2 restart
Contents