Subdomains when using WAMP for public use
Posted by: critikull (---.cg.shawcable.net)
Date: January 06, 2012 05:34AM

Hey,

I manually created some subdomains in the httpd.conf, httpd-vhosts.conf, and hosts files they work perfectly locally but when I try to access them externally they don't work.

[1.2.3.4] // works
[sub.1.1.2.3.4] // doesn't work

Any ideas?



Edited 1 time(s). Last edit at 01/06/2012 05:36AM by critikull.

Options: ReplyQuote
Re: Subdomains when using WAMP for public use
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: January 06, 2012 11:03AM

u cant have a sub.ipaddress!!

your funny smiling smiley


it needs to be a sub.domain

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Subdomains when using WAMP for public use
Posted by: critikull (---.compute-1.amazonaws.com)
Date: January 07, 2012 12:51AM

yawning smiley How would I host multiple sites externally using the server ip?

Options: ReplyQuote
Re: Subdomains when using WAMP for public use
Posted by: stevenmartin99 (---.251.255.13.threembb.ie)
Date: January 07, 2012 06:16AM

Folders?

Ip/site1
Ip//site2

Or use domains - like the Internet uses!

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Subdomains when using WAMP for public use
Posted by: critikull (---.compute-1.amazonaws.com)
Date: January 07, 2012 11:00AM

I've tried folders but what does the host file look like?

127.0.0.1 localhost/site1

Doesn't work.

Options: ReplyQuote
Re: Subdomains when using WAMP for public use
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: January 07, 2012 04:30PM

you dont need to use hosts file for folders..


just ut your sites in different folders.

your getting all mixed up!

get teamviewer and ill set it up for you smiling smiley

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Subdomains when using WAMP for public use
Posted by: critikull (---.cg.shawcable.net)
Date: January 09, 2012 09:50AM

I apologize for not grasping this but I am extremely new to this!

Basically I want to host multiple sites, now I setup folders in the root:

www/site1
www/site2

However, when referencing an image for site1 in HTML

<img src="/images/logo.png" alt="example">

It will look for the folder images on the www level not www/site1. I already setup he virtual hosts in the apache config for each site so I'm just confused on how to make these sites their own root. Sorry if I am unclear.



Edited 1 time(s). Last edit at 01/09/2012 09:51AM by critikull.

Options: ReplyQuote
Re: Subdomains when using WAMP for public use
Posted by: yfastud (Moderator)
Date: January 14, 2012 07:26PM

No matter within or outside LAN access, you need to setup Access, DNS, and VH; Access for permission to connect to your Wamp PC, DNS to tie Domain(s) to your Wamp PC, and VH to host multiple Domains/Websites/IP's and even you have only 1 Domain/IP, you should use VH to set it up w/ the site you want to show up first on top and localhost on bottom and others in middle if having more than 1 site; w/ VH, other PC's, no matter w/i or outside LAN, can access/see websites/contents of that particular folder set for that particular VH on your wamp PC. If dont have real Domain, just skip DNS guide

To setup Access, follow this
[blog.jlbn.net]

To setup VH, follow this
[blog.jlbn.net]

To setup DNS, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.