Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to setup an intranet on a dedicated server, it would need simple things like a sharing folders and a private website that will only be accessible trough vpn.

Now I'm really not sure how to achieve this, I kinda get the idea of setting up vpn that's fair enough but how do I set the website to only show in the intranet?

if anyone could point me to a guide or something it would be great :)


share|improve this question
Private DNS server that resolves my.internalsite to the webserver in the VPN. I, however, do not know how to set up DNS servers and such, so you'd need to research yourself, and configure your VPN to use your private DNS. – Oxwivi Oct 26 '11 at 15:10

I would use something called xampp it is a full fledged web server and it has something in its httpd.conf file that you can set to only allow users connected to your network to access the server so setup VPN and use xampp and it will work out great

share|improve this answer

a VPN basically gives a computer in the internet access to a network . if the webserver responds to a private ip (192.x.x.x) in that network there is no way to get it from the outside.

basically you want to mount the webserver in a machine that is not the gateway to the internet (the one with the public ip provided by your ISP)

share|improve this answer
yes I can block the site from other IP in the vhost of apache, but how can I make it so that if I type "my.internalsite" in the browser it will direct automatically to the site that is only visible by me? without editing the hosts file if possible – merlin371 Oct 26 '11 at 14:24

This may not be a complete answer, but perhaps a DNS entry on the Gateway.
"my.internalsite.local" > 192.x.x.x
Provided you're accessing it from within the network and the Gateway is your DNS Server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.