Apache - Problemas con mod-rewrite Apache redirect.

 
Vista:

Problemas con mod-rewrite Apache redirect.

Publicado por kiekurt23 (1 intervención) el 25/02/2019 08:30:52
Buenas, estoy teniendo problemas con un proxy apache.

Quiero que los usuarios accedan a https://correo.es mediante el proxy -> https://proxy2.correo.es.
Parece que funciona correctamente hasta que los usuarios realizan login que una vez que han realizado el login, se muestra https://correo.es/mail/, que es justamente lo que no quiero.

Asi es como tengo configurado el virtualhost

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<VirtualHost *:843>
	ServerName  proxy2.correo.es:843
 
	TraceEnable On
	ProxyRequests Off
 
 
	#Añado para ProxyURLMap
 
	ProxyHTMLInterp On
 
	SSLEngine On
	ProxyHTMLExtended On
	SSLProxyEngine On
	SSLProxyVerify none
	SSLProxyCheckPeerCN off
	SSLProxyCheckPeerName off
	SSLProxyCheckPeerExpire off
	SSLCertificateFile "E:/Apache24/ssl/portal/portal.es.pem"
	SSLCertificateKeyFile "E:/Apache24/ssl/portal/portal.es.key"
 
	#Añado
 
	ProxyPass "/" "https://correo.es/"
	ProxyPassReverse "/" "https://correo.es/"
	ProxyHTMLURLMap "https://correo.es/" "/"
 
 
	RewriteRule / https://proxy2.correo.es:843/
 
 
</VirtualHost>

He probado con diferentes rewrites y nada, siempre me acaba mostrando la url de correo.es


RewriteRule ^/(.*) https://proxy2.correo.es:843/$1 [R,L]
RewriteRule /(.*) https://proxy2.correo.es:843/$1 [P]

¿Alguna idea?



Version de apache
1
Server version: Apache/2.4.37 (Win32)

Modulos cargados.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
httpd -M
Loaded Modules:
 core_module (static)
 win32_module (static)
 mpm_winnt_module (static)
 http_module (static)
 so_module (static)
 access_compat_module (shared)
 actions_module (shared)
 alias_module (shared)
 allowmethods_module (shared)
 asis_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 deflate_module (shared)
 proxy_http_module (shared)
 status_module (shared)
 substitute_module (shared)
 xml2enc_module (shared)
 dir_module (shared)
 env_module (shared)
 filter_module (shared)
 ext_filter_module (shared)
 headers_module (shared)
 include_module (shared)
 isapi_module (shared)
 logio_module (shared)
 log_config_module (shared)
 log_debug_module (shared)
 log_forensic_module (shared)
 md_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 proxy_module (shared)
 proxy_html_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 socache_shmcb_module (shared)
 ssl_module (shared)
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder