Basic Guide for Setup, Backup, and Upgrade
Posted by: yfastud (---.cable.mindspring.com)
Date: October 18, 2006 04:36AM

[www.jlbn.net] (Basic Guide for WAMP)




Post Edited (07-12-07 19:14)

Have fun,

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

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: John2897 (---.manc.cable.ntl.com)
Date: December 17, 2006 04:43AM

After editing the httpd.conf and adding the Three ports etc, how do I point my Three domains to the individuel Three ports. What I mean is:

Do I add the ports after my IP in the A record on my domain hosting control panel. For example; Would I change my 'www A Record' to something like:

A record for domain #1 =
123.456.123.456:80

A record for domain #2 =
123.456.123.456:81

A record for domain #3 =
123.456.123.456:8080

And thank you for the above infomation. I finaly feel that I'm getting somewhere with hosting a website on my own PC atlast. *fingers crossed*

If only domain hosting sites were as helpfull as this..

Thanks, J.

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: yfastud (---.mia.bellsouth.net)
Date: December 17, 2006 05:20AM


Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: John2897 (---.manc.cable.ntl.com)
Date: December 17, 2006 06:05AM

On the internet. So I'm presuming its global. But are you sure that is correct? I mean, if I put...

sub1.domain.com 123.345.567.789

... as my A Record for www.domain#1.com for example, how will Apache know to use port 80 when there is no port number after the IP? How will it know I want the next domain to goto port 81, and the third to goto port 8080?

This is getting interesting! : )

Thanks again, J.

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: yfastud (---.mia.bellsouth.net)
Date: December 17, 2006 06:15AM

Quote

how will Apache know to use port 80 when there is no port number after the IP?

When you mention Apache, I think you mean local then because for global accessible, you have to setup through dns.

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: John2897 (---.manc.cable.ntl.com)
Date: December 17, 2006 06:43AM

Yes, after I have edited the httpd.conf, I will need to set it up through the DNS too, so that the traffic will be directed to my machine via my domain's.

I went to my domain hosts control panel (123-Reg). There I can change:

Name: (www) or (@)
Type: (A), (CNAME) or (TXT)
Content: (194.154.164.90) *I think this must be their defualt IP.*

So I presume, for this to work. I must set it something like this?:

Domain #1, www.alpha.com:
Name: (www)
Type: (A)
Content: (sub1.alpha.com 123.345.567.789:80)

Domain #2, www.bravo.com:
Name: (www)
Type: (A)
Content: (sub2.bravo.com 123.345.567.789:81)

Domain #3, www.charley.com:
Name: (www)
Type: (A)
Content: (sub3.charley.com 123.345.567.789:8080)

If I add the ports after the IP's like above, will Apache pickup on these and guide the traffic to the corresponding ports which I've set in the httpd.conf?

I mean, would Apache see that (sub1.alpha.com 123.345.567.789:80) came through port 80, and then direct it to c:\wamp\www\users\website1\public_html? And if I didn't add the port after the IP, like: (sub1.alpha.com 123.345.567.789), how would Apache know I wanted to direct it to c:\wamp\www\users\website1\public_html?

I'm sorry for sounding so dumb, and your patients is very appreciated.

This is one of the sites which I'm trying to host with Wamp using the domain www.squadz.co.uk:
[81.109.238.66]

Thanks, J.



Post Edited (12-17-06 12:05)

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: yfastud (---.mia.bellsouth.net)
Date: December 17, 2006 05:10PM

Quote


Domain #1, www.alpha.com:
Name: (www)
Type: (A)
Content: (sub1.alpha.com 123.345.567.789:80)

Domain #2, www.bravo.com:
Name: (www)
Type: (A)
Content: (sub2.bravo.com 123.345.567.789:81)

Domain #3, www.charley.com:
Name: (www)
Type: (A)
Content: (sub3.charley.com 123.345.567.789:8080)

If I add the ports after the IP's like above, will Apache pickup on these and guide the traffic to the corresponding ports which I've set in the httpd.conf?

I mean, would Apache see that (sub1.alpha.com 123.345.567.789:80) came through port 80, and then direct it to c:\wamp\www\users\website1\public_html? And if I didn't add the port after the IP, like: (sub1.alpha.com 123.345.567.789), how would Apache know I wanted to direct it to c:\wamp\www\users\website1\public_html?

The answer is no.

Because wampserver is for developers, not for production, so I might post the detail on my sites, but not here.

Have fun.

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: John2897 (---.manc.cable.ntl.com)
Date: December 18, 2006 03:40AM

Ah', IC. Could you give me the URL to your site? My Email/MSN is:
XXXXXXXXXXXX@hotmail.com

Thanks, J.



Edited 1 time(s). Last edit at 01/28/2010 11:19AM by roms.

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: yfastud (---.cable.mindspring.com)
Date: December 18, 2006 04:31AM

You already see them, the signature in the original post; however, I didn't post anything about building server there yet. Also, it might takes a while to complete everything in detail so read this and hope you can get the idea

There are 4 A records and 1 C record in these links

[test.jlbn.com]
[mail.jlbn.com]
[forum.jlbn.com]
[ftp.jlbn.com]
[jlbn.com] (Images Testing)
[jlbn.com] (Flashes Testing)

4 A records are:

test.jlbn.com
forum.jlbn.com
ftp.jlbn.com
jlbn.com

1 C record is
mail.jlbn.com

So when people type in any A record above, for example test.jlbn.com, dns will route their traffic to my computer and VH in my wampserver will route their traffic to TEST folder, but not the others. On the other word, each A record will associated w/ a VH which points to a specific folder on my computer. Therfore, no port is on dns, but they are setup in VH. You get it?

Hope this help

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: John2897 (---.manc.cable.ntl.com)
Date: December 18, 2006 08:17AM

*** EDIT ***

Fixed it!! grinning smiley

People with the same problem. Use your domain hosts default name servers, and add your IP as the www A Record.

I did this, but everytime I tried to access my domain from this PC, I saw a login screen which totaly confused me. But after entering the username & password for my router, I connected to my router's web interface.. So it's simple. You can't access your site via your domain when it's hosted on your PC, unless:

1, You use a modem instead of a router.
Or:
2, You try accessing your site from a different IP than your own.

In other words:
If your domain is www.alpha.com and your IP is 123.345.567.789, login to your domain hosts control panel and create or edit the existing www A record. Your IP goes there. If there is already an IP there, delete it and type: 123.345.567.789 or what ever your IP is. Now when you type: www.alpha.com into your web browser, you may see a login screen. This will only happen if you are using a router. But if your friend types www.alpha.com in his browser, he will see your site as long as port 80 is forwarded to the machine your hosting on, and as long as he doesn't have the EXACT same IP as you of course! : )

Now if only I can successfully get the three domains to work, that would be great. That's my next objective. First I think I should try:

A record for domain #1 =
123.456.123.456:80

A record for domain #2 =
123.456.123.456:81

A record for domain #3 =
123.456.123.456:8080

Thanks, J.



Post Edited (12-18-06 13:57)

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: yfastud (72.236.169.---)
Date: December 18, 2006 01:31PM

Quote


All I want to do is get my sites running on my machine using Wamp. So that instead of sending people an ugly looking URL which looks like this: [81.109.238.66], Instead, send them a nice looking URL, like this: [www.squadz.co.uk].

That is all I want to do.. I have browsed until my eyes have exploded, and still not found a way to direct the traffic from squadz.co.uk (My domain) to 81.109.238.66 (My IP). If I ever manage to do it, I will believe there is a god.

If you don't know anything, it's difficult, but it's very easy if you know what to do; however, it's a little too long to list everything in detail, especially I can't post them here, so it might be posting soon in my site which might be webserver.jlbn.com

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: yfastud (72.236.169.---)
Date: December 18, 2006 05:10PM

Quote


People with the same problem. Use your domain hosts default name servers, and add your IP as the www A Record.

I did this, but everytime I tried to access my domain from this PC, I saw a login screen which totaly confused me. But after entering the username & password for my router, I connected to my router's web interface.

You only see your router because you either didn't do port forward in your router correctly or didn't setup vh properly.



Post Edited (12-18-06 17:13)

Have fun,

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

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: yfastud (---.cable.mindspring.com)
Date: December 19, 2006 12:00AM

Quote


Now if only I can successfully get the three domains to work, that would be great. That's my next objective. First I think I should try:

A record for domain #1 =
123.456.123.456:80

A record for domain #2 =
123.456.123.456:81

A record for domain #3 =
123.456.123.456:8080

No, it won't work that way

Instead look at it as

1+1=2

You should look at it as

1:1+1:1=2

I mean that what you setup in your computer should be associated w/ what you setup in DNS so when they both combine should have the result(s) as expected.



Post Edited (12-19-06 03:48)

Have fun,

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

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: John2897 (---.manc.cable.ntl.com)
Date: December 19, 2006 01:01PM

Quote

You only see your router because you either didn't do port forward in your router correctly or didn't setup vh properly.

The reason I saw my router, was becuase I was trying to connect to my computer, from my computer, via the internet. But If I connect to my computer, from someone else's computer, It works. Even using my domain. Which is why I posted how I fixed it. So everything is configured correctly and functioning correctly. And I still don't know what a "VH" is! grinning smiley

Quote

No, it won't work that way

Instead look at it as

1+1=2

You should look at it as

1:1+1:1=2

Instead of giving me some calculations which I cannot understand. Could you just tell me what I should type into my A Records for each of the three domains? That would be so much easier to understand for a dumb ass like me. : )

Thanks, J.



Post Edited (12-19-06 13:06)

Options: ReplyQuote
Re: Basic Guide for Setup, Backup, and Upgrade
Posted by: yfastud (72.236.169.---)
Date: December 19, 2006 01:30PM


Options: ReplyQuote


Sorry, only registered users may post in this forum.