specific folder for a specific port
Posted by: pendelum14 (115.147.106.---)
Date: January 04, 2012 11:50AM

Is there a way to create a specific port for a specific folder?
What i mean is,
is there a way if i open localhost:4000 it should redirect me to a specific folder?
example:
in my www folder there is a folder named testport

if i open localhost it would access the www folder
but if i open localhost:4000 it should open the testport folder

Options: ReplyQuote
Re: specific folder for a specific port
Posted by: pendelum14 (115.147.106.---)
Date: January 04, 2012 11:53AM

Does this have to do with virtualhosts? If yes, can you teach me how?

Options: ReplyQuote
Re: specific folder for a specific port
Posted by: yfastud (Moderator)
Date: January 05, 2012 01:04AM

You should setup VH instead; then, you can type 'http://site1' to show the webpage and/or content of folder c:\wamp\www\site1, for example, 'http://site2' to show the webpage and/or content of folder c:\wamp\www\site2, 'http://site3' to show the webpage and/or content of folder c:\wamp\www\site3 ... in additions, you can add their shortcuts to custom WAMP Menu for quick access; check screenshot below winking smiley

[jlbn.com]

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.