17 lines
494 B
Plaintext
17 lines
494 B
Plaintext
<VirtualHost *:80>
|
|
ServerAdmin webmaster@localhost
|
|
|
|
# AQUI ESTÁ A MÁGICA: Apontar para a pasta public
|
|
DocumentRoot /var/www/html/public
|
|
|
|
<Directory /var/www/html/public>
|
|
Options Indexes FollowSymLinks
|
|
# Isso permite que o Laravel gerencie as rotas (remove o index.php da url)
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
</VirtualHost>
|