php - How to deploy laravel Application so that url doesn't contain '/public/index' -
I have a larval application in which a public file contains an index file that I can get by using the following url :
   But I want to use the url like this:        Perhaps the best way to remove   How to use virtual hosts:   myIpAddress / teamsync / public / index    MyIpAddress / teamsync  to access my index file.    / public / is. . Setting up your virtual host configuration file to set the  / public  directory as the root document. It kills a stone with a bird, so you can set yoursitename.com as the root of Laravel, but you can take sensitive back-end files away from the  www  root folder Are there.   
 & lt; VirtualHost *: 80 & gt; Servername MySaer Document Corrections / var / www / yourproject / public server alias www.example.com & lt; / VirtualHost & gt;    
 
  
Comments
Post a Comment