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?

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.

Hi arretx,

just follow diabolicos instructions.