๐๏ธ sudo nano /etc/apache2/sites-available/platform.conf
๐๏ธ add the following code-
<VirtualHost *:80>
ServerAdmin me@myserver
DocumentRoot /var/www/html/your_folder_name/ingrammicrocloud/web
ServerName platform.local
ServerAlias *.platform.local
CustomLog /var/log/apache2/ingram.error.log combined
<Directory /var/www/html/your_folder_name/ingrammicrocloud/web>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
๐๏ธ sudo a2ensite platform
๐๏ธ sudo nano /etc/hosts
๐๏ธ add the bellow code-
127.0.0.1 platform.local
๐๏ธ sudo service apache2 restart
๐๏ธAccess the project-------------
๐๏ธ go to url and type platform.local
Last active
July 24, 2021 10:00
-
-
Save dasbairagya/2005abe5ba14e2d26a1a712a19f38ecd to your computer and use it in GitHub Desktop.
#Virtual Host setup in Apache | Linux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment