Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-22-2009, 03:27 PM   #1
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
Domain name to apache server? no-ip.com?

So I got apache up and running on windows and want to point one of my domains to my ip address now. I tried to make an name server ns1.mydomain.com and ns2.mydomain.com to go to my fixed ip address but it's showing a 400 error. I also changed the domain in the httpd settings of apache to:

# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName www.mydomain.com:80

Was this all I need to do? Maybe it takes more time to propagate the name servers. Should I maybe use a service like no-ip.com for this? Is there a better alternative service?
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2009, 03:42 PM   #2
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
I googled it and it seems a did everything right, except I am using a rogers rocket stick which is a gprs usb dongle. I don't know how to find the "router" settings for it since its not technically a router. When i go to http://localhost/ or http://myip it brings me to my apache document root just fine so not sure if I do need to configure the stick somehow.
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2009, 03:43 PM   #3
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
you got to add A record in NS assigned for particular domain so domain will point to proper ip
then make sure router forwards required ports, http is port 80 by default
and pray that your ISP doesn't block commonly used ports, if it does. then you can use another port like yourdomain.com:88 (which also must be configured in apache and router)
some ISPs may also recycle their IPs so your IP may change sometime. in which case you can hook it up somehow through dyndns.org or similar service.

in your apache follow this example to setup vhost
<VirtualHost *:80>
ServerAdmin [email protected]lhost
DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/docs/dummy-host.localhost"
ServerName dummy-host.localhost
ServerAlias www.dummy-host.localhost
ErrorLog "logs/dummy-host.localhost-error.log"
CustomLog "logs/dummy-host.localhost-access.log" common
</VirtualHost>
im not sure if "ServerName www.mydomain.com:80" correct and works
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2009, 03:47 PM   #4
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
router usually avail at http://192.168.1.1 if thats not the case than do "ipconfig /all" in command prompt and try ip of your gateway from that list
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2009, 03:54 PM   #5
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
Quote:
Originally Posted by holograph View Post
router usually avail at http://192.168.1.1 if thats not the case than do "ipconfig /all" in command prompt and try ip of your gateway from that list
I am using one of those GPRS usb dongles. The IP isn't fixed but I am just tweeking around so when I need a fixed IP i'll use no-ip or another service, for now I just won't disconnect my internet.

If I type my ip it goes right to my webserver. I did however type ipconfig /all and 2 DNS servers were listed, should I maybe change the ns1.mydomain.com and ns2.mydomain.com to these two ip's listed under the dns server results from the ipconfig /all?
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2009, 04:05 PM   #6
frank7799
Confirmed User
 
frank7799's Avatar
 
Industry Role:
Join Date: Jul 2003
Location: In the middle of nowhere...
Posts: 1,974
You can setup a domain name-based or IP-based. Either way, if you do not set up virtual hosts properly, it won´t work. Here is an example for a name-based host:

NameVirtualHost 172.16.1.100

<VirtualHost 172.16.1.100>

ServerName www.yourdomain.com
ServerAdmin admin@ yourdomain.com

DocumentRoot /var/www/hosts/www. yourdomain.com

Error logs/ yourdomain.com -error_log
Custom los/ yourdomain.com common

<Directory /var/www/virt-bin/yourdomain/>
AllowOverride None
Options ExecCGI
SetHandler cgi-script
</Directory>

</VirtualHost>
frank7799 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2009, 04:21 PM   #7
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Quote:
Originally Posted by mkx View Post
I am using one of those GPRS usb dongles. The IP isn't fixed but I am just tweeking around so when I need a fixed IP i'll use no-ip or another service, for now I just won't disconnect my internet.

If I type my ip it goes right to my webserver. I did however type ipconfig /all and 2 DNS servers were listed, should I maybe change the ns1.mydomain.com and ns2.mydomain.com to these two ip's listed under the dns server results from the ipconfig /all?
in short, no.
i suggested ipconfig /all only to look for a gateway ip in order to try to get "router" admin.
your domain's NS have nothing to do with your local internet config.

you have to add domain name / ip pair at NS responsible for that domain ns1.mydomain.com

while typing it i realized you have no DNS where you could add domain & your ip, which usually comes with web hosting. so scratch that. if you want to use your domain on local service you need to hook it up with some dynamic dns service, which may cost some
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.