9

In a old PC, I installed Ubuntu server 14.04 and I want to use this server to host some websites and web applications that will be available in my network. I installed Apache and when I click in the browser the IP of my server I successfully see the Apache's webpage.

Lets say, I have a static website which is accessible from 192.168.0.10/mysite.html. Is it possible to access this site from a certain domain (e.g. mydomain.mycompany.gr) which will work only under my network?

I tried and I create a virtual host, using this guide but it didn't worked..

yaylitzis
  • 273
  • 3
  • 9
  • @AnthonyFornito due to `off-topic` question – alexus Mar 09 '17 at 20:04
  • unix.stackexchange.com – alexus Mar 09 '17 at 20:11
  • @AnthonyFornito I'm not mod. I suggest unix stack as it covers unix & linux related questions (learning), serverfault is for business environment. – alexus Mar 09 '17 at 20:14
  • @AnthonyFornito Why don't you move your ranting complaints to meta.serverfault.com where it belongs? –  Mar 09 '17 at 20:15
  • Thx @AnthonyFornito for the support. The truth is that I am total newbie to all this. That's why I setup the server in order to test it and learn things.. and also I don't understand why is off topic from serverfault site. The question is about how to configure the server. And yes, the server is under a business network... – yaylitzis Mar 09 '17 at 20:16
  • @yaylitzis take a look at this http://serverfault.com/help/on-topic – alexus Mar 09 '17 at 20:17

1 Answers1

11

If you setup everything on the server correctly:

In the walk through TL;DR is didn't see updating your apache.conf you have NameVirtualHost *:80 in there to server up domain names.

Secondly if this is just for your network and for testing, i am also assuming you do not have a DNS server anywhere, use the local hosts file on your local pc to map the domainname to your IP address name.

Follow this if you have any questions about how to do that:

https://support.aiso.net/index.php?/Knowledgebase/Article/View/240/2/how-do-i-add-my-domain-name-to-my-computers-host-file

Anthony Fornito
  • 9,546
  • 1
  • 34
  • 124