我正在嘗試在運(yùn)行 CentOS7 的 AWS EC2 實(shí)例上使用 Laravel 部署我的網(wǎng)站。我已經(jīng)檢查以確保端口和流量設(shè)置正確,并且它們是因?yàn)槲夷軌蛟诰庉媍onf之前訪問apache登陸頁(yè)面,并且我還能夠ssh并ping IP,但我相信我是配置文件可能存在一些問題。這就是我到達(dá)終點(diǎn)時(shí)所遇到的情況:我的 httpd 正在運(yùn)行,并且我能夠在編輯配置文件之前訪問 apache 登錄頁(yè)面。這是我的 httpd.conf 的主要部分(請(qǐng)注意:我沒有包含整個(gè)內(nèi)容,因?yàn)樗艽蟛⑶抑饕勺⑨尩舻拇a組成):# DocumentRoot: The directory out of which you will serve your# documents. By default, all requests are taken from this directory, but# symbolic links and aliases may be used to point to other locations.#DocumentRoot "/var/www/[project_path]/public"## Relax access to content within /var/www.#<Directory "/var/www/[project_path]/public"> AllowOverride All # Allow open access: Require all granted</Directory># Further relax access to the default document root:<Directory "/var/www/[project_path]/public"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Require all granted</Directory>## DirectoryIndex: sets the file that Apache will serve if a directory# is requested.#<IfModule dir_module> DirectoryIndex index.html</IfModule>## The following lines prevent .htaccess and .htpasswd files from being# viewed by Web clients.#<Files ".ht*"> Require all denied</Files>
EC2 實(shí)例上托管的 Laravel 項(xiàng)目的站點(diǎn)部署連接被拒絕
桃花長(zhǎng)相依
2023-09-15 17:31:17