How to solve a timeout error in Laravel 5

后端 未结 13 2071
说谎
说谎 2020-11-30 08:43

I have the following set up:

In routes I have:

Route::get(\'articles\', \'ArticlesController@index\');

The index method in the controller is simply:<

相关标签:
13条回答
  • 2020-11-30 09:14

    Options -MultiViews -Indexes

    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]
    
    #cambiamos el valor para subir archivos
    php_value memory_limit 400M
    php_value post_max_size 400M
    php_value upload_max_filesize 400M
    php_value max_execution_time 300 #esta es la linea que necesitas agregar.
    

    0 讨论(0)
提交回复
热议问题