Laravel route not working in Apache using custom port in virtual host Laravel route not working in Apache using custom port in virtual host apache apache

Laravel route not working in Apache using custom port in virtual host


In Apache documentation, ServerName should something like domain name http://httpd.apache.org/docs/2.2/mod/core.html#servername

Try to change ServerName 10.61.0.3 to ServerName example.com.

Don't forget to add 127.0.0.1 example.com into your /etc/hosts.

If you want VirtualHost runnning on port 8080, you must define NameVirtualHost http://httpd.apache.org/docs/2.2/vhosts/examples.html#port

For example:

Listen 8080NameVirtualHost 10.61.0.3:8080<VirtualHost 10.61.0.3:8080>    ServerName example.com      DocumentRoot /var/www/laraapp/public  </VirtualHost>