Solved

point ip to folder on server

Posted on 2012-12-21
6
308 Views
Last Modified: 2012-12-28
I have just setup a static IP (external) to point to my local pc using wamp.

On my web host, Ive also created an 'A' record of client.mydomain.com to point to the static ip.

problem is when I access client.mydomain.com, it goes to the root of my wamp server (showing all projects.)

how to I make it point to the client. I assume its a specific entry in http.conf.

Any help would be appreciated.
0
Comment
Question by:TBerripub
6 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 38715106
Here are a number of methods including http.conf..

http://www.yolinux.com/TUTORIALS/ApacheRedirect.html

HTH,

Kent
0
 
LVL 7

Expert Comment

by:Milind Koyande
ID: 38715471
Hello,

You need to add a VirtualHost entry in Httpd.conf file.

Please refer: http://www.thegeekstuff.com/2011/07/apache-virtual-host/ which show how you can configure virtual host with example.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38715639
It is pretty much the same as your other Q:

in your httpd.conf file find DocumentRoot "C:/wamp/www"

and change it to DocumentRoot "f:/wamp/www/xxxx"

Cd&
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:TBerripub
ID: 38716060
Thanks guys for all of your comments, but still not working.

So here is what ive done so far.

1. I have added an A record to client.mydomain.com which uses my ip address as provided my service provider. this is static.

2. I have added port forwarding for http to port 80.
http://awesomescreenshot.com/099qop77d

3. I have installed wamp (running windows).

Expectations.

1. When I type in client.mydomain.com (externally : e.g if im in another country) I want it to load the website on my pc, which is currently located in c:/wamp/www/client

Issues

1. when I type in my ip directly, I get the error
"Forbidden You don't have permission to access / on this server."

2. when I do a port forwarding tester (http://www.yougetsignal.com/tools/open-ports/), it says port 80, along with every other port is blocked.

I have disabled my firewalls.

So a bit stuck here.
0
 
LVL 16

Accepted Solution

by:
grahamnonweiler earned 500 total points
ID: 38716840
1) Not able to access port 80 "externally"
Assuming you are trying to access your server from an external source (outside of your home/office)  and you have a consumer/broadband Internet connection it is quite possible that your ISP is in fact blocking port 80 (along with a number of other ports). Although you said you assigned a "static IP" you did not state if that was "inside" or "outside", where "outside" means a Public IP Address.

If your "static IP" is a Public  IP address (assigned by your ISP) then ask them to open port 80 at their firewall.

If you "static IP" is an internal IP address, and you are using a dynamic external IP address, and your ISP is blocking port 80, then you will need to use a different port from outside to access your internal server, and using port forwarding translation to forward the external port to internal port 80.

2) Once you have established external access to your server, then you will have to setup a "virtual host" entry in your Apache conf file for "client.mydomain.com" which is pointing at the directory (folder) you have placed on your server for that client.
0
 

Author Comment

by:TBerripub
ID: 38728218
ISP was blocking port,
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video teaches users how to migrate an existing Wordpress website to a new domain.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now