Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to setup a ProxyPass Virtual Host

On my server which i will call server.server.com I run jenkins a service that runs on port 8080.

I would like to have the virtual domain jenkins.server.com proxy from port 80 to port 8080.


from the linux world i would use:

<VirtualHost *:80>

ServerName jenkins.server.com


ErrorLog "/var/log/httpd/jenkins.server.com.error.log.%Y%m%d"

LogLevel warn


ProxyTimeout 300

ProxyPreserveHost On

ProxyPass / http://localhost:8080/

ProxyPassReverse / http://localhost:8080/

</VirtualHost>


I have tried to set up a website and edit the conf file but the server will not start.

Do I have to install mod_proxy, how?

Am i missing somthing?


Server Version 2.2.1

OS X Version 10.8.3

OS X Server-OTHER, OS X Mountain Lion (10.8.3)

Posted on Apr 9, 2013 8:29 PM

Reply
Question marked as Best reply

Posted on Jan 6, 2017 8:05 AM

hey klajd,

apple wants you to use reverse proxy for these features.

SEe precursors http://www.precursor.ca/precursor/resources/rais/landing/ReverseProxyTutorial.ht ml for how to setup virtual host on your machine and stop using linux...haha.

p

5 replies

Oct 27, 2016 7:46 PM in response to LaTeX001

Hi

I just made reverse proxy on El Capitan + Server environment now.

I hope to be your help.


"https://localhost/thread" = "https://discussions.apple.com/thread"


Please rewrite last line of your config file with your URL and network address, and restart web service.


$ sudo vi /Library/Server/Web/Config/apache2/sites/0000_127.0.0.1_34543_conf


<VirtualHost 127.0.0.1:34543>

...

SSLProxyEngine on

ProxyPass /thread https://discussions.apple.com/thread

ProxyPassReverse /thread https://discussions.apple.com/thread

<Directory /thread/>

ProxyPassReverseCookieDomain myhost.local discussions.apple.com

ProxyPassReverseCookiePath / /

<Limit POST PUT DELETE>

Order allow,deny

allow from 127.0.0.1 192.168.0.0/24

deny from all

</Limit>

</Directory>

</VirtualHost 127.0.0.1:34543>

Dec 17, 2016 10:38 AM in response to ymatubar

Unfortunately our friends at apple have forgotten how to write software, or smth like that.

As of latest Server.app version 5.1.7

Any directives that start with ProxyPass will be removed by the server.app when the machine reboots

The line

ProxyPass /thread https://discussions.apple.com/thread

will disapear from the .conf file, it will however be on the .conf.prev file

The result is that when you reboot the server some days, weeks latter all of a sudden stuff will not work and you will waste a full hour going FFFF happened.


I got bitten twice by this 'feature'

Apple: How hard can it be to not FFFF with these files ? To not improperly clean these files. To preserve what's ok.


As a very very long time mac/server user I'm very disapointed, i have started the move of several servers to Linux ubuntu.

How to setup a ProxyPass Virtual Host

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.