Symbolic link in application Laravel

0

I'm deploying a Laravel application to a server, and I'm having trouble creating a symbolic link:

The server public files are in the raiz/public_html

The public files of laravel are in the path raiz/aplicacao/public

I'm trying to create the symbolic link:

ln -s raiz/aplicacao/public raiz/public_html

The link was created, but access is as follows: www.mysite.com/public

How to make access only to www.myusite.com? Is it an error in my symbolic link or should this be done via .htaccess?

    
asked by anonymous 14.11.2018 / 13:15

1 answer

0

Access the file: /etc/apache2/sites-available/000-default.conf .

Where% /var/www/html place the path to your site. Maybe it's:

/var/www/html/aplicacao/public_html or /var/www/html/aplicacao/public .

This is APACHE2 that is on your Linux. If it is /etc/httpd you have to see which file you have to move, why I can not remember exactly where it is in this version of Apache.

    
14.11.2018 / 13:24