D
D
Div-Man2018-09-19 16:13:50
Apache HTTP Server
Div-Man, 2018-09-19 16:13:50

Why is the laravel website not opening on the server?

Everything works locally.
I upload this project to VPS.
The installed laravel from the docks works, but for some reason it doesn’t work from my repository. htaccess are the same.
If public is not specified in the DocumentRoot, then the Laravel that is taken from the docks is loaded and the entire structure is displayed, and if you switch to public, then the default laravel page opens.
If this is done with my project, then the structure is loaded and if we switch to public, then the page is not available.

<VirtualHost *:80>                                                                                                                                  
 
        ServerAdmin [email protected]                                                                                                            
 
DocumentRoot /var/www/html/images/public                                                                                                            
 
ErrorLog ${APACHE_LOG_DIR}/error.log                                                                                                                
CustomLog ${APACHE_LOG_DIR}/access.log combined                                                                                                    
</VirtualHost>

It's in public, it's not at the root
IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>
 
    RewriteEngine On
 
    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
 
    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]
 
    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Nesmeyanov, 2018-09-19
@SerafimArts

And the logs are empty, right?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question