Results 1 to 11 of 11
-
02-01-2014, 03:17 AM #1Junior Guru Wannabe
- Join Date
- Nov 2013
- Posts
- 62
Static IP Address + Apache 2 + multiple sites
Hi guys,
i have a test server here at home with a virtual machine running Ubuntu LAMP.
Whilst setting up the LAMP is of no issue, i have never attempted to host multiple websites on a static ip address before.
How does one go about setting this up?
documentation i have read so far continually refers to site 1 and site 2 URL's using .com name.
i need to be able to access both sites only using my static ip address here at home.
-
02-01-2014, 03:25 AM #2KM Carpenter
- Join Date
- Feb 2003
- Location
- Albany, New York
- Posts
- 3,026
I believe this is what you're looking for: https://httpd.apache.org/docs/2.2/vhosts/
-
02-01-2014, 05:58 AM #3Junior Guru Wannabe
- Join Date
- Nov 2013
- Posts
- 62
not really...
i have a static ip address without DNS!!!
The nearest solution to my problem is a Wordpress Multisite option. Trouble is, it is as buggy as a summer nite full of mosquitos!
I have spent 2 hours trying to read my way through a bunch of completely disjointed codex!
How in gods name is someone supposed to learn from the wordpress codex when they are being thrown from one article to another part way through...its damn useless!
Im going to try youtube
-
02-01-2014, 08:44 AM #4Newbie
- Join Date
- Jan 2014
- Posts
- 13
If you are not using dns(accessing the website via a domain), you could have apache listen on multiple ports and then create sites-enabled configs for each site using one of the ports.
htt p://10.0.1.1:80 SITE 1
htt p://10.0.1.1:81 SITE 2
htt p://10.0.1.1:82 SITE 3Last edited by WLH-Dale; 02-01-2014 at 08:48 AM.
-
02-01-2014, 02:18 PM #5KM Carpenter
- Join Date
- Feb 2003
- Location
- Albany, New York
- Posts
- 3,026
Is there a reason you're not using any DNS? Maybe try DynDNS.com
-
02-02-2014, 01:28 AM #6Junior Guru Wannabe
- Join Date
- Nov 2013
- Posts
- 62
1. I had wondered about using multiple ports.
So essentially, would this mean that the user types in the appropriate port number after url in order to access the their own website under development?
2. Dont really know if i need to go down the dns pathway, its only a development test server...wouldn't it be less likely to be found and attacked from outside if i dont use dns?
-
02-02-2014, 01:44 AM #7Newbie
- Join Date
- Jan 2014
- Posts
- 13
DNS would be easier, but if you want to go the ports route.....
In each config in sites-enabled folder
<VirtualHost 10.1.2.3:81>
<VirtualHost 10.1.2.3:82>
<VirtualHost 10.1.2.3:83>
also edit ports.conf
NameVirtualHost *:80
Listen 80
NameVirtualHost *:81
Listen 81
NameVirtualHost *:82
Listen 82
NameVirtualHost *:83
Listen 83
-
02-02-2014, 02:04 AM #8Web Hosting Master
- Join Date
- Apr 2011
- Location
- Cybertron
- Posts
- 10,484
-
02-02-2014, 02:07 AM #9Web Hosting Master
- Join Date
- Apr 2011
- Location
- Cybertron
- Posts
- 10,484
-
02-02-2014, 03:20 AM #10Junior Guru Wannabe
- Join Date
- Nov 2013
- Posts
- 62
another query,
i have just installed centos 6.5 LAMP. on my vmvirtualbox.
from localhost everything appears to be running fine.
Now how do i get the damn thing to broadcast the default webpage via my public ip?
i port forwarded my rounter to the centos virtual machine, however not getting any further.
I set up an Ubuntu 13.01 desktop machine only 2 months ago without any problems...trouble is, my memory is a bit like a bucket with a hole in it im afraid...i have completely forgotten what to do next!
-
02-09-2014, 11:07 PM #11Newbie
- Join Date
- Jan 2012
- Posts
- 14
Similar Threads
-
Multiple Sites on Apache
By mystycs in forum Hosting Security and TechnologyReplies: 3Last Post: 07-08-2007, 05:31 PM -
Multiple dynamic sites in one virtual directory (Apache Questions)
By 1EightT in forum Dedicated ServerReplies: 5Last Post: 03-20-2007, 12:01 PM -
apache on multiple IP address
By kapot in forum Hosting Security and TechnologyReplies: 1Last Post: 10-10-2004, 01:22 PM -
Static IP address VS Virtual IP address
By rayzine in forum Reseller HostingReplies: 1Last Post: 09-04-2000, 01:07 PM