我仍然是一个Apache和它的configuration新手,并与我的networking服务器,我服务Redmineruby应用程序和静态内容有问题。
Apache 2.2
目前有以下代理设置:
ProxyPass /portal https://mypage.domain.com:8181/portal ProxyPassReverse /portal https://mypage.domain.com:8181/portal ProxyPass /examples http://mypage.domain.com:8555/portal ProxyPassReverse /examples http://mypage.domain.com:8555/portal ProxyPass / balancer://redmine_cluster/ ProxyPassReverse / balancer://redmine_cluster/ <Proxy balancer://redmine_cluster> BalancerMember http://REDMINEMACHINENAME:3000/ </Proxy> DocumentRoot "X:/app/Redmine/public" <Directory "X:/app/Redmine/public"> Require all granted Options -MultiViews </Directory> RequestHeader set X-Forwarded-Proto "https"
当试图访问:
pipe理平台:
mypage.domain.com
它需要我Redmine。 好。
/门户网站:
mypage.domain.com/portal
它失败
未find请求的URL / portal /在此服务器上找不到。
WEB.SERVER.ADDRESS - - [09/Oct/2015:16:14:15 -0700] "GET /portal/ HTTP/1.1" 404 207 MY.IP.ADDRESS - - [09/Oct/2015:16:14:15 -0700] "GET /portal/ HTTP/1.1" 404 207
/例子
mypage.domain.com/examples MY.IP.ADDRESS - - [09/Oct/2015:16:10:11 -0700] "GET /examples/ HTTP/1.1" 200 1285
作品
是否可以configurationApache,以便我可以使用
mypage.domain.com mypage.domain.com/portal mypage.domain.com/examples
去所有我需要去的地方? 怎么样?
任何build议更好的标题?
这不是一个很好的答案,但是我在评论栏里跑出了空间。 我把你的configuration放在笔记本电脑上。 这肯定是因为你正在代理https网站/ portal。 如果你可以发送到一个http网站,它会立即解决问题。 我检查和喜欢你(最有可能)我有mod_proxy和mod_proxy_connect启用(至less在configuration),但由于某种原因,请求不被发送到https站点,不pipe端口。 Ubuntu很难看到实际加载的模块。
在没有数据到嗅探器上的端口,我straced apache2并得到:
[pid 397] read(5, <unfinished ...> [pid 458] accept4(4, 0xa9ee615c, [128], SOCK_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
这不是非常有用,但显示绝对没有任何要求。 你可以用自己的方式来玩https部分,不pipe其他代理的URL如何,它都会出现相同的错误。