Configure Laravel Virtual Host in Ubuntu

Asked

Viewed 1,878 times

2

When I access a project that does not use Lockable, it works normal, but when some access uses, does not load anything and shows an empty screen. Its configuration has to be different from the others?

My virtual host is like this:

<VirtualHost *:80>
   DocumentRoot "/var/www/html/insidetv/public/" 
   ServerName insidetv.local 
   ServerAlias insidetv.local 
   ErrorLog "/var/log/apache2/insidetv-error.log" 
   CustomLog "/var/log/apache2/insidetv-custom.log" common
   <Directory "/var/www/html/insidetv/public/"> 
      Options Includes FollowSymLinks 
      AllowOverride All 
      Order allow,deny 
      Allow from all 
   </Directory> 
 </VirtualHost>
  • If you enter a Servername localhost in either httpd.conf or apache2.conf in /etc/apache2 and restart apache, the warning will disappear. Running over Ubuntu distro ? What version?

  • I put the servername, but at the time of giving Restart appears; apache2: Could not reliably determine the server’s Fully Qualified Domain name, using 127.0.1.1. Set the 'Servername' Directive globally to Suppress this

  • I am using Ubuntu Desktop 16.04.3 LTS

  • I changed the insidetv.conf file to this: <Virtualhost *:80> Servername insidetv.conf Documentroot "/home/Vagrant/insidetv/public" <Directory "/home/Vagrant/insidetv/public"> Allowoverride all </Directory> </Virtualhost>

  • Now apache does Restart, but when I try to access insidetv.local, it shows the following: Forbidden You don’t have permission to access / on this server.

  • Check permission on user folder, check which user was created home directory

  • I ended up reinstalling the Ubuntu pq was giving me lots of problems

  • I updated the post with the problem that is giving now.

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.