Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CiprianSpiridon/2e8e1fd52c067031040d to your computer and use it in GitHub Desktop.
Save CiprianSpiridon/2e8e1fd52c067031040d to your computer and use it in GitHub Desktop.
Creating an Apache VirtualHost in Ubuntu for your laravel Project
#go to the conf folder
cd /etc/apache2/sites-available
#create the new .conf file
sudo vi myapp.com.conf
#Add the following content to your .conf file
<VirtualHost *:80>
ServerAdmin webmaster@myapp.com
ServerName myapp.com
DocumentRoot /var/www/myapp.com/public/
<Directory /var/www/myapp.com/public/>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
<FilesMatch \.php$>
# Change this "proxy:unix:/path/to/fpm.socket"
# if using a Unix socket
#SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</Directory>
ErrorLog ${APACHE_LOG_DIR}/myapp.com-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/myapp.com-access.log combined
</VirtualHost>
#Save the file, then continue below.
cd /etc/apache2/sites-enabled
sudo ln -s ../sites-available/myapp.com.conf
#Restart apache
sudo service apache2 restart
@parvatmabohang
Copy link

#
nike-air-pegasus-33-black-sdl153684887-4-67442
nike_air_max_2015_m_profile_04_hd_1600qweqweqwe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment