Apacheとlaravelの設定

709 ワード

vimを使用してプロファイルを編集する
vim /etc/httpd/conf/httpd.conf
  • 再起動モジュールを開く(以下の行の#を除去する)
  • LoadModule rewrite_module modules/mod_rewrite.so
    
  • AllowOverride NoneをAllowOverride All
  • に変更
  • 仮想ホストを構成し、/etc/http/conf/http.conf最後尾、注意注釈
  • を取り除く
    
    ServerAdmin [email protected]                //      
    DocumentRoot "/var/www/html/laravel5.2/public"   //       
    ServerName www.aliyun.com                  //  ,        IP
    DirectoryIndex index.php index.html index.htm    //            
    ErrorLog "logs/www.aliyun.com-error_log"       //  
    CustomLog "logs/www.aliyun.com-access_log" common //