Etki alanından sonra gelenlere bağlı olarak farklı uygulamalara yönlendiren bir sanal konak, dev.company.com oluşturmaya çalışıyorum. Özellikle, benim istediğim:Adlandırılmış bir VirtualHost İçinde birden çok ServerPath yönergesi kullanma
- /Jenkins'i - rotaya bir Jenkins sunucuya
- /uygulamalar - rotaya bir açılış sayfasına çeşitli uygulamalar için bağlantıları
- /yonca ile - rotaya belirli Jenkins inşa raporu - http://dev.company.com/jenkins/job/proj-master-clover/clover/
- /- her şey olması gerektiği aşağıdaki yapılandırma kullanıyorum
Tomcat sunucusuna yönlendirmek:
<VirtualHost *:80>
ServerName dev.company.com
ServerPath /jenkins
ProxyPass /jenkins http://easyrider:8080/jenkins
ProxyPassReverse /jenkins http://easyrider:8080/jenkins
ServerPath /clover
Redirect /clover http://dev.company.com/jenkins/job/proj-master-clover/clover/
ServerPath /apps
DocumentRoot "/usr/local/sites/developers"
<Directory "/usr/local/sites/developers">
DirectoryIndex index.html
Options Indexes MultiViews
</Directory>
ServerPath/
ProxyPass/http://tomcat_server:8080/
ProxyPassReverse/http://tomcat_server:8080/
</VirtualHost>
http://dev.company.com/jenkins iyi çalışıyor, ancak/apps ve/clover her zaman Tomcat sunucusuna yeniden yönlendiriyor. Bunu yapmanın doğru yolu nedir?