如何解决浏览器不呈现 css 和 JS 和图像
我正在使用:
Ubuntu 16.04。 阿帕奇 2.4 PHP73-PHP-fpm 在我的开发服务器上。我设法得到它,所以我可以指定一个处理程序,它会将那个 vhost 放在正确的 PHP 版本上,但是 CSS 和 JS 似乎出错了。并且在未加载的浏览器图像上 https://upgrade.zvendo.dev/storev3/public/admin/login
我收到此错误:
[Fri Apr 30 01:33:16.587617 2021] [proxy_http:error] [pid 13729] (20014)内部错误(具体信息不可用):[client 154.183.224.14:51093] AH0110 读取状态行错误远程服务器 upgrade.zvendo.dev:4003,引用者:https://upgrade.zvendo.dev/storev3/public/admin/login [Fri Apr 30 01:33:16.587658 2021] [proxy:error] [pid 13729] [client 154.183.224.14:51093] AH00898:从 /electroo/ 返回的远程服务器读取错误,引用:https://upgrade.zvendo.dev/storev3/public/admin/login 所有者目录:: root@127:/var/www/html# ls -ld storev3 drwxrwxrwx 17 root root 4096 Apr 28 12:23 storev3
-- 完整虚拟主机:
<IfModule mod_rewrite.c>
RewriteEngine On
# If an existing asset or directory is requested go to it as it is
RewriteCond %{REQUEST_URI} !/storev3
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
RewriteRule ^ /dist/browser/index.html
</IfModule>
<VirtualHost *:80>
ServerAdmin dev.leads@businessboomers.net
ServerName upgrade.zvendo.dev
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyRequests Off
ProxyPass /storev3 !
ProxyPass / http://upgrade.zvendo.dev:4003/
ProxyPassReverse / http://upgrade.zvendo.dev:4003/
# Set aliases for /assets,/admin and /api to the correct routes
AliasMatch /assets/admin/(.*)$ /var/www/html/storev3/assets/admin/
#AliasMatch /admin/app.PHP/(.*)$ /var/www/html/storev3/public/app.PHP/admin/
#AliasMatch /api/app.PHP/(.*)$ /var/www/html/storev3/public/app.PHP/api/
#AliasMatch /admin(.*)$ /var/www/html/storev3/public/app.PHP/admin/
#AliasMatch /api/(.*)$ /var/www/html/storev3/public/app.PHP/api/
AliasMatch /media/(.*)$ /var/www/html/storev3/public/media/
ErrorLog /var/log/apache2/upgrade.zvendo.dev-error.log
LogLevel error
CustomLog /var/log/apache2/upgrade.zvendo.dev-access.log combined
<Directory /var/www/html/storev3/public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
Allow from All
Header set access-control-allow-credentials true
</Directory>
<Files *.css>
Header set Content-type "text/css"
</Files>
# removing this shows the MIME type errors from before
<Files *.js>
Header set Content-type "text/javascript"
</Files>
RewriteEngine on
RewriteCond %{SERVER_NAME} =upgrade.zvendo.dev
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
有什么建议为什么 ubuntu 服务器上的 Apache 这样做/不这样做吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。