Reverse proxy
-
- Know my way around
- Posts: 198
- Joined: Thu May 26, 2016 3:05 pm
Re: Reverse proxy
I already did. previous post item 5)
-
- Been there, done that
- Posts: 855
- Joined: Thu Mar 26, 2015 12:36 am
- Location: somewhere in EU
Re: Reverse proxy
What if you try with a custom sub.domain? In my case I have for example the following config in DNS panel of my domain provider:
Type: CNAME
TTL: 3 hours
Name: gogs
Value: xxxx.myqnapcloud.com.
I don't know if this could be helpful...
Sent from my A0001 using Tapatalk
Type: CNAME
TTL: 3 hours
Name: gogs
Value: xxxx.myqnapcloud.com.
I don't know if this could be helpful...
Sent from my A0001 using Tapatalk
Qnap TS-253Pro 16Gb RAM - Single Storage Pool: 2 WRed 4TB (RAID 1)
Qnap TS-453A 16Gb RAM - Single Storage Pool: 4 WRed 4TB (RAID 5)
Qnap TS-453A 16Gb RAM - Single Storage Pool: 4 WRed 4TB (RAID 5)
-
- Know my way around
- Posts: 198
- Joined: Thu May 26, 2016 3:05 pm
Re: Reverse proxy
Domains are converted into IPs. if we can get IPs working, we worry about ports (internet access) and domains(pretty names) afterwards.
What must work first is: http://192.168.1.1/git --> http://192.168.1.1:3000
PS: I don't have DS server. I'm using qnap cloud domain.
What must work first is: http://192.168.1.1/git --> http://192.168.1.1:3000
PS: I don't have DS server. I'm using qnap cloud domain.
-
- Know my way around
- Posts: 198
- Joined: Thu May 26, 2016 3:05 pm
Re: Reverse proxy
I've found this discussion about the same thing I'm trying to do. It is very simple.
https://discuss.gogs.io/t/apache-sub-ur ... gogs/129/5
Qnap web server and it's config resets is what's causing all this nightmare.
And we are bashing our heads on the wall for more than a month.
https://discuss.gogs.io/t/apache-sub-ur ... gogs/129/5
Qnap web server and it's config resets is what's causing all this nightmare.
And we are bashing our heads on the wall for more than a month.
-
- Been there, done that
- Posts: 855
- Joined: Thu Mar 26, 2015 12:36 am
- Location: somewhere in EU
Re: Reverse proxy
I can't tell, I have installed gogs and with a reverse proxy I could reach the first setup screen. I did not continue to see if the service could be proxed correctly after the setup phase or if some module had to be added to apache.config to make it working...
Sent from my A0001 using Tapatalk
Sent from my A0001 using Tapatalk
Qnap TS-253Pro 16Gb RAM - Single Storage Pool: 2 WRed 4TB (RAID 1)
Qnap TS-453A 16Gb RAM - Single Storage Pool: 4 WRed 4TB (RAID 5)
Qnap TS-453A 16Gb RAM - Single Storage Pool: 4 WRed 4TB (RAID 5)
-
- Starting out
- Posts: 10
- Joined: Thu Jan 21, 2016 9:29 am
Re: Reverse proxy
I took on tackling this setup the other day and finally have reverse proxy working. For instance, I have several apps installed on my QNAP which all run on specific ports.
For example, I have Emby running on port 8096 and would have to access it via qnap.lan:8096
I would like to access it like this emby.lan
Note that .lan is my local domain and "qnap" being a DNS entry pointing to the local IP of my Qnap.
You are right about needing to import the proxy modules in the apache.conf. I did this by adding these lines into a separate file and having apache.conf load it.
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
I followed this old thread here: viewtopic.php?t=59272
The last comment in that thread is what works for me inside my httpd-vhosts-user.conf file.
I also had to add another DNS entry on my router which points to my qnaps local IP when someone types "emby.lan" in the address bar. You could also setup the suffix method so that you could access it via qnap.lan/emby and not need to add DNS entries like this:
For example, I have Emby running on port 8096 and would have to access it via qnap.lan:8096
I would like to access it like this emby.lan
Note that .lan is my local domain and "qnap" being a DNS entry pointing to the local IP of my Qnap.
You are right about needing to import the proxy modules in the apache.conf. I did this by adding these lines into a separate file and having apache.conf load it.
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
I followed this old thread here: viewtopic.php?t=59272
The last comment in that thread is what works for me inside my httpd-vhosts-user.conf file.
Code: Select all
<VirtualHost _default_:80>
DocumentRoot "/share/Web"
</VirtualHost>
<VirtualHost *:80>
ServerName emby.lan
ProxyPreserveHost On
ProxyRequests Off
ProxyVia Off
<Location />
#Order deny,allow
ProxyPass http://127.0.0.1:8096/
ProxyPassReverse http://127.0.0.1:8096/
</Location>
<Proxy *>
#Order deny,allow
Require all granted
</Proxy>
</VirtualHost>
Code: Select all
<VirtualHost *:80>
ServerName qnap.lan
ProxyPreserveHost On
ProxyRequests Off
ProxyVia Off
<Location /emby>
#Order deny,allow
ProxyPass http://127.0.0.1:8096/emby
ProxyPassReverse http://127.0.0.1:8096/emby
</Location>
<Proxy *>
#Order deny,allow
Require all granted
</Proxy>
</VirtualHost>