
apache2.4 구성에 문제가 있습니다. 다음을 통해 연결할 수 있는 아파치에서 제공하는 여러 서비스가 있습니다.
www.example.com/http-service/ -> 프록시 패스 구성 www.example.com/webservice2/ -> 프록시 패스 구성 www.example.com/service3/ -> 디렉토리 웹페이지 www.example.com/websock/ -> 프록시 패스 구성
이제 www.example.com/에 다른 페이지를 제공하고 싶습니다.
하지만 프록시 패스 구성을 사용하여 위치를 생성하려는 경우 현재 서비스는 더 이상 제공되지 않으며 모든 요청은 -> www.example.com으로 리디렉션됩니다.
모든 서비스를 이용할 수 있는 솔루션이 있나요?
<VirtualHost *:443>
ServerName
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLCertificateFile /etc/ssl/certs/www-example-com.pem
SSLCertificateKeyFile /etc/ssl/private/www-example-com.key
SSLCertificateChainFile /etc/ssl/certs/www-example-com.chain
<Directory "/converee/">
Options FollowSymLinks
AllowOverride None
</Directory>
<Location /http-service>
Require all granted
AllowOverride None
ProxyPass https://localhost:5200/http-service/
ProxyPassReverse https://localhost:5200/http-service/
</Location>
ProxyPass /webservice2 https://127.0.0.1:6000/
ProxyPass /websock wss://127.0.0.1:6000/websock retry=3
ProxyPassReverse /webservice2 https://127.0.0.1:6000/
ProxyPassReverse /websock wss://127.0.0.1:6000/websock retry=3
RedirectMatch permanent /webservice2$ /webservice2/
<Location />
Allow from all
AllowOverride None
ProxyPass http://localhost:3030/
ProxyPassReverse http://localhost:3030/
</Location>
<Directory "/var/www/service3">
Options Indexes FollowSymLinks
MultiViews
AllowOverride All
Order allow,deny
</Directory>
감사합니다 팅글
답변1
몇 가지 내용을 읽은 후 해결책을 찾았습니다.
<LocationMatch "^(?!\/(service1|service2)\/?).*">
#Service config for / except for /service1 or service2
</LocationMatch>