Is there a way to prevent public access to a sub-server?

3 posts / 0 new
Last post
#1 Mon, 03/19/2018 - 00:33
arretx

Is there a way to prevent public access to a sub-server?

Yup...just setup a Virtual Server and a Sub-Server under that VS. What I'd like to know is if I can prevent access outside of my network to that sub-server?

Main site: www.example.com which is public facing on ns1.example.com Home Directory: /home/username

Sub-Server: subserver.example.com Home Directory: /home/username/domains/subserver.example.com

Basically, the content in the sub-server's public_html file would be a static website containing information that only a few people would be permitted to access.

Or...is there a better way to accomplish this?

Tue, 03/20/2018 - 21:07
Diabolico
Diabolico's picture

You can use htaccess and setup username with a password otherwise no one will be able to access content of your subdomain. You could set separate username and password for each person who is allowed to visit your subdomain.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Wed, 03/21/2018 - 13:26
unborn
unborn's picture

Hi arretx,

just follow diabolicos instructions.

Configuring/troubleshooting Debian servers is always great fun

Topic locked