我有localhost:63837
運行ISSO應用程序,我想代理請求從https://www.domain.com/isso
如何在htaccess中將子文件夾重定向爲代理?
這是我的方法:
RewriteRule https://www.domain.com/isso/(.*)$ http://127.0.0.1:63837/$1 [P]
RewriteRule /isso/(.*)$ http://127.0.0.1:63837/$1 [P]
RewriteRule /isso(.*)$ http://127.0.0.1:63837/$1 [P]
一般情況下我調整httpd-vhost.conf
但在這種情況下,我不能這樣做在我的主辦方(Uberspace)上。
<Location "/isso">
ProxyPass "http://127.0.0.1:63837"
ProxyPassReverse "http://127.0.0.1:63837"
</Location>
此外,我不喜歡爲此使用子域。
'重寫規則^ ISSO /(.*)$ http://127.0.0.1:63837/$1 [P]'? –
@DusanBajic:不幸的是404。但是,謝謝。 – crstin
只需再次檢查,您的主機不會讓您編輯.conf,但它允許您在端口63837啓動您的應用程序? –