I am always getting blank page while accessing my Laravel project given below. Please advise how this problem can be resolved. Thanks!
http://1.231.118.4:9000/admin/login
Apache 2.4 PHP 7.2 MySQL 5.7
phpinfo: http://1.231.118.4:9000/info.php
vhost:
JavaScript
x
<VirtualHost *:9000>
ServerName 1.231.118.4
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/ico/public
<Directory /var/www/html/ico/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/html/ico/error.log
</VirtualHost>
.htaccess:
JavaScript
<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>
Advertisement
Answer
In my appProvidersRouteServiceProvider.php file, the routes were serviced on 443 port that’s why I was getting 404 on all routes. Thanks everybody anyways.
JavaScript
public function map()
{
switch(request()->getPort()){
case 9001:
//exit;
break;
case 443:
$this->mapAdminWebRoutes();
$this->mapApiRoutes();
$this->mapWebRoutes();
break;
// choose a port that is not used by another server
default:
$this->mapAdminWebRoutes();
$this->mapApiRoutes();
$this->mapWebRoutes();
break;
}
}