Suche nach den letzten 3 Tagen über die Konfiguration Laravel 5.4 auf meinem Linux-Mint-18.2-System läuft Apache 2.4. Wenn Apache Server startet und ich manuell localhost in den Browser eintippe, zeigt es die Standard-Homepage von Laravel, aber wenn ich versuche, es durch Live-Vorschau in Klammern zugreifen (live Vorschau Basis-URL: http://localhost als meine Laravel-Projekt-Pro liegt in/var/www/html /), aber es wirft einen internen Serverfehler auf, der den Fehlern in meiner Apache-Konfiguration entspricht. Hier stelle ich meine .htaccess-Datei 000-default.conf-Datei im sites-aktivierten Verzeichnis von apache2 und apache2 vor. conf Dateien: Eine wichtige Sache: i pro mein Projektordner bekam unter/var/www/html/Nichts zugänglich in meinem Laravel-Projekt außer der Homepage
1. 000-default.conf(sites-enabled)
<VirtualHost *:80>
ServerName localhost
ServerAdmin [email protected]
DocumentRoot /var/www/html/pro/public
<Directory /var/www/html/pro/public>
Options Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
2. apache2.conf
Mutex file:${APACHE_LOCK_DIR} default
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Include ports.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
AccessFileName .htaccess
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
Include /etc/phpmyadmin/apache.conf
3 .htaccess (/var/www/html/pro/public/.htaccess)
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteBase /var/www/html/pro/public/
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule^index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
danke vor der Hand!
hast du dir laravel project von diesem cmd :: php artisan serve bedient? –
@GauravGupta Ja, ich habe das getan, bevor ich diese Frage selbst gepostet habe! und das ist der einzige Grund, warum ich meine Homepage laufen sehen kann und nichts anderes – acaman