Score:0

Apache2 Virtual Host Proxy Forward

kz flag

Hi all I am trying to use a virtual host to forward streaming.fusion.tk to my internal emby server form my webserver.

I have setup a config file called streaming.conf in /etc/apache2/sites-available/

<VirtualHost *>
ServerName streaming.fusion.tk
ServerAdmin fusion@localhost

ProxyRequests off
<Proxy "*">
Order deny, allow
Allow from all
</Proxy>

ProxyPass / http://192.168.0.203:8096/
ProxyPassReverse / http:192.168.0.203:8096/

</VirtualHost>

I enabled the site using sudo nano a2ensite streaming.conf and restarted the apache2 service

When I try and get to the site I am not able to access anything.

Some help would be appriciated.

Michael Hampton avatar
cz flag
Your site seems to be working fine. What is the problem you are having?
kz flag
@MichaelHampton thats just my main page for fusion.tk.
kz flag
@tomasz I may of typed that by accednet. I missed that thanks. But it is still not showing up. I am lost to why this does not work. Spent all day yesterday working on this :(
Michael Hampton avatar
cz flag
Neither `ProxyRequests` nor the entire `<Proxy>` block should be there at all. It looks like you pasted those out of a bad Internet tutorial. Anyway your site now gives a 403 error, so what is the current state of the configuration?
kz flag
@MichaelHampton I can get to the sites when using the IP address with in my local network or when I use my public IP and Port. Yes I did follow a tutorial from he web. But most show the same thing. If I remove the ProxyRequest and <Proxy> Block and now I get the Forbidden message on my phone, Using the OPTUS network.
kz flag
`<VirtualHost *> ServerName streaming.fusion.tk ServerAdmin [email protected] ProxyPass / http://192.168.0.203:8096/ ProxyPassReverse / http://192.168.0.203:8096/ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>'
Michael Hampton avatar
cz flag
What is in the error log, then?
kz flag
@MichaelHampton From the log file when working on it this morning. Sun Aug 15 20:25:17.754330 2021] [authz_core:error] [pid 21105] [client 49.197.169.197:61669] AH01630: client denied by server configuration: proxy:http://192.168.0.203:8096/ [Sun Aug 15 20:31:36.185761 2021] [authz_core:error] [pid 21106] [client 44.193.78.119:49868] AH01630: client denied by server configuration: proxy:http://azenv.net/ [Sun Aug 15 21:48:48.736434 2021] [authz_core:error] [pid 21109] [client 76.118.17.84:33424] AH01630: client denied by server configuration: proxy:http://192.168.0.203:8096/
Score:1
kz flag

I edited my streaming.conf file and added the bellow

<Proxy http://192.168.0.203:8096>
Require all granted
Options None
</Proxy>

and now I am able to access streaming.fusion.tk

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.