当前宝塔使用的免费控制面板版本号:免费版 7.4.5
配的Apache服务器为:2.4.46
Tomcat 手动自己安装的路经:/usr/tomcat/apache-tomcat-9.0.38
宝塔面板也安装Tomcat 路经:/www/server/tomcat
现在网站均能正常工作。
问一下,为什么 我直接卸载Apache ,新安装 Nginx 1.19版本后,网站却无法加载 CSS等静态文件。
现在Apache 配置文件是
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot "/www/wwwroot/stonexpo.online"
ServerName f36df2fb.stonexpo.online
ServerAlias stonexpo.online www.stonexpo.online
#errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/stonexpo.online-error_log"
CustomLog "/www/wwwlogs/stonexpo.online-access_log" combined
#DENY FILES
<Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
Order allow,deny
Deny from all
</Files>
#PHP
<FilesMatch \.php$>
SetHandler "proxy:unix:/tmp/php-cgi-74.sock|fcgi://localhost"
</FilesMatch>
#TOMCAT-START
<IfModule mod_proxy.c>
ProxyRequests Off
SSLProxyEngine on
ProxyPass / http://stonexpo.online:8080/
ProxyPassReverse / http://stonexpo.online:8080/
RequestHeader unset Accept-Encoding
ExtFilterDefine fixtext mode=output intype=text/html cmd="/bin/sed 's,:8080,,g'"
SetOutputFilter fixtext
</IfModule>
#TOMCAT-END
#PATH
<Directory "/www/wwwroot/stonexpo.online">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
</VirtualHost>
|
|