These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Is there a way to prevent public access to a sub-server? on the new forum.
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?
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.
Hi arretx,
just follow diabolicos instructions.
Configuring/troubleshooting Debian servers is always great fun