Solved

point ip to folder on server

Posted on 2012-12-21
6
307 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

747 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

12 Experts available now in Live!

Get 1:1 Help Now