当前位置:论坛首页 > Linux面板 > 求助

【已回应】apache 设置二级目录反向代理,主站错误,

发表在 Linux面板2019-6-20 10:50 [复制链接] 2 1186

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Apache Server at cad.china-linghang.com Port 80

暂停服务
由于维护停机或容量问题,服务器暂时无法为您的请求提供服务。请稍后再试。

Apache服务器位于cad.china-linghang.com端口80
1反向代理配置.jpg 二级目录可以访问.jpg

网站配置文件如下:
<VirtualHost *:80>
    ServerAdmin webmaster@example.com
    DocumentRoot "/www/wwwroot/cad.china-linghang.com"
    ServerName ad9dec16.cad.china-linghang.com
    ServerAlias cad.china-linghang.com
    #errorDocument 404 /404.html
    ErrorLog "/www/wwwlogs/cad.china-linghang.com-error_log"
    CustomLog "/www/wwwlogs/cad.china-linghang.com-access_log" combined
        #引用反向代理规则,注释后配置的反向代理将无效
        
        IncludeOptional /www/server/panel/vhost/apache/proxy/cad.china-linghang.com/*.conf

    #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-00.sock|fcgi://localhost"
    </FilesMatch>

    #PATH
    <Directory "/www/wwwroot/cad.china-linghang.com">
        SetOutputFilter DEFLATE
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.php index.html index.htm default.php default.html default.htm
    </Directory>
</VirtualHost>

使用道具 举报 只看该作者 回复
发表于 2019-6-20 14:54:16 | 显示全部楼层
检查下站点文件是不是把url写死了,怎么没有办法将静态资源代理过来。
使用道具 举报 回复 支持 反对
发表于 2019-6-20 15:13:29 | 显示全部楼层
css路径不对啊
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表