Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sub domain configuration for network encoder #9834

Open
milehighkaraoke opened this issue Jan 22, 2025 · 3 comments
Open

sub domain configuration for network encoder #9834

milehighkaraoke opened this issue Jan 22, 2025 · 3 comments

Comments

@milehighkaraoke
Copy link

@DanielnetoDotCom
can you help me with this? I have been trying to get this to work all day but can not seem to find the correct combination.

VirtualHost *:81>
ServerName encoder.mhktube.com
ServerAlias www.encoder.mhktube.com

RewriteEngine On
RewriteRule ^/(.*) http://10.10.10.100:80/$1 [P,L]

RewriteCond %{SERVER_NAME} =encoder.mhktube.com [OR]
RewriteCond %{SERVER_NAME} =www.encoder.mhktube.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

<VirtualHost *:8443>
ServerName encoder.mhktube.com
ServerAlias www.encoder.mhktube.com

SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/mhktube.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mhktube.com/privkey.pem

RewriteEngine On
RewriteRule ^/(.*) https://10.10.10.100:443/$1 [P,L]  # Remove the extra space before the "/"

I get the 443 forbidden
https://encoder.mhktube.com

@baoang
Copy link

baoang commented Jan 23, 2025

`<VirtualHost *:443>

ServerName encoder.mhktube.com
ServerAlias www.encoder.mhktube.com`

turn 8443 to 443, and then probably it will not tell fobidden

@milehighkaraoke
Copy link
Author

443 is being used on front end along with 80
I am trying to redirect encoder.mhktube.com at the front end and point it to apache on backend

@milehighkaraoke
Copy link
Author

I have absolutely no idea what I am doing but I am digging in and giving it a go. Spent close to 40 hrs with Gemini and Chat GPT that ended with a blown up Apache2 lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants