Ideas - Can we host a different website on a PG server? | PlexGuide.com

Ideas Can we host a different website on a PG server?

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

soy_titooo

Citizen
Original poster
Apr 5, 2020
4
1
I use PG 8.7.5 with plex, sonarr, radar, nzbget, traefik, pgshield and the most common programs on a Hetzner server and I access to them via appname.my-domain-name.com

But I'd like to know if it's possible to still use the server to host a different domain name with whatever php or html files I add to it

As far as I know port 80 is being used by traefik, so I'm not sure how that can be done. I saw this post from 2 years ago but it's been a while since then so i thoguht I better ask rather than re-deploy a WP container when in reality I don't plan to use WP on that new domain
 

fr0sty

Veteran
Staff
Donor
Jul 8, 2018
184
54
Seems risky associating any info with it.
But could find a webhost? container and set as "Top Level Domain App". What container depends on what your doing i guess.
 

michaelbas

Noobz
Mar 2, 2019
2
0
I used the following docker run information to get another domain to run with httpd:

docker run -d \
--name=httpd \
-p 5001:80 \
-v /opt/appdata/httpd/htdocs:/usr/local/apache2/htdocs/ \
-v /opt/appdata/httpd/conf:/usr/local/apache2/conf \
--restart unless-stopped \
-l traefik.enable=true \
-l traefik.frontend.auth.forward.address \
-l traefik.frontend.headers.SSLHost=domain.com \
-l traefik.frontend.headers.SSLRedirect=true \
-l traefik.frontend.headers.STSIncludeSubdomains=true \
-l traefik.frontend.headers.STSPreload=true \
-l traefik.frontend.headers.STSSeconds=315360000 \
-l traefik.frontend.headers.browserXSSFilter=true \
-l traefik.frontend.headers.contentTypeNosniff=true \
-l traefik.frontend.headers.customResponseHeaders=X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex \
-l traefik.frontend.headers.forceSTSHeader=true \
-l traefik.frontend.rule=Host:domain.com \
-l traefik.port=80 \
httpd

The only thing you need to change in the folder: /opt/appdata/httpd/conf is a file called: httpd.conf is the: ServerName domain.com:80
 

Bjarne

Citizen
Nov 26, 2019
6
3
I used the following docker run information to get another domain to run with httpd:

docker run -d \
--name=httpd \
-p 5001:80 \
-v /opt/appdata/httpd/htdocs:/usr/local/apache2/htdocs/ \
-v /opt/appdata/httpd/conf:/usr/local/apache2/conf \
--restart unless-stopped \
-l traefik.enable=true \
-l traefik.frontend.auth.forward.address \
-l traefik.frontend.headers.SSLHost=domain.com \
-l traefik.frontend.headers.SSLRedirect=true \
-l traefik.frontend.headers.STSIncludeSubdomains=true \
-l traefik.frontend.headers.STSPreload=true \
-l traefik.frontend.headers.STSSeconds=315360000 \
-l traefik.frontend.headers.browserXSSFilter=true \
-l traefik.frontend.headers.contentTypeNosniff=true \
-l traefik.frontend.headers.customResponseHeaders=X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex \
-l traefik.frontend.headers.forceSTSHeader=true \
-l traefik.frontend.rule=Host:domain.com \
-l traefik.port=80 \
httpd

The only thing you need to change in the folder: /opt/appdata/httpd/conf is a file called: httpd.conf is the: ServerName domain.com:80
Nice tip. Will try it.
 

Recommend NewsGroups

      Up To a 58% Discount!

Trending