jeudi 15 octobre 2020

Laravel apache public index not showing page

how to solve the laravel on prod server, page is not showing instead the index.php string is shown below is the image attached.

image index

my code on vhost is.

  VirtualHost *:80>
  
        ServerName my.server.com
        RewriteEngine On        
        RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [redirect=301]    
        
    </VirtualHost>
    Listen 443
    
    <VirtualHost *:443>
      
       DocumentRoot "${SRVROOT}/htdocs/OCMS/publics"
        ServerName my.server.com    
        <Directory "${SRVROOT}/htdocs/OCMS/public>
            Options Indexes MultiViews FollowSymLinks               
            AllowOverride all
            allow From All
            Require all granted
        </Directory>
        
        Alias /admin "${SRVROOT}/htdocs/OCMS/public"    
        <Directory "${SRVROOT}/htdocs/OCMS/public">
            Options Indexes MultiViews FollowSymLinks
            order deny,allow
            AllowOverride all
            allow From All
            Require all granted
        </Directory>
        
    </VirtualHost>

my code on htaccess is.

 <IfModule mod_rewrite.c>           
    
        
        # Send Requests To Front Controller...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [L]
        
        RewriteBase /admin/
    </IfModule>


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/372QVAK
via IFTTT

Aucun commentaire:

Enregistrer un commentaire