But the hands of the school has a few domain name resolution of the server (but it should be with VMware to do VPs, and so on, and then the relevant domain name to be resolved to have extranet IP reverse proxy server, and then through the reverse proxy Server squid distributed to the intranet)
So one day whim, through the Apache pseudo static +proxy curve to save the nation visit Git server, after a variety of attempts to finally succeed
You can move httpd.conf.
Under the VirtualHost section of a domain name, add
The code is as follows |
Copy Code |
<ifmodule mod_rewrite.c> Rewriteengine on Rewritecond%{query_string} ^ (. *) $ Rewriterule ^ (. *)/([a-z0-9_\-]+) \.git$ http://intranet IP-resolved domain name/$2.GIT [p,l] Rewriterule ^ (. *)/([a-z0-9_\-]+) \.git/(. *) $ http://Intranet IP-resolved domain name/$2.GIT/$3 [p,l] </IfModule> |
And at the beginning of the httpd.conf.
Adddefaultcharset UTF-8
Prevent Reverse agent garbled
And then remove
The code is as follows |
Copy Code |
LoadModule Proxy_module modules/mod_proxy.so LoadModule Proxy_http_module modules/mod_proxy_http.so LoadModule Proxy_http_module modules/mod_proxy_http.so |
Before the comment
Then restart the Apache service and fix it.