How to Hide my IP address

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to Hide my IP address

Postby paulrb02 » 06. August 2006 02:14

Ok I'm kinda new to all of this, but here is my question. I own brewyet.net but when I point brewyet.net to my computer it shows the IP address. What do I have to do so the browser will show brewyet.net and not my IP Address.

eg. When someone else in the world types brewyet.net they should see brewyet.net not my IP address

Currently brewyet.net is pointed to another server
paulrb02
 
Posts: 4
Joined: 06. August 2006 01:56

Postby Izzy » 06. August 2006 04:22

When I type http://www.brewyet.net I get this not your IP:
http://my.lsu.edu/pbroui2/

Who is the domain name DNS with?
If you type your domain name in a browser the domain name registrar has to know what nameservers are bound to that domain name ie. ns1.somenameserver.tld - ns2.somenameserver.tld

Once that is established the virtual host section below may be of use.


You may have to create a virtual host in your httpd-vhost.conf file located in xampp/apache/conf/extra

Something on the lines of this:
(your configuration may be different but you will get the idea from the commented templates)
Code: Select all
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/path/to/your/xampp/htdocs"
</VirtualHost>


<VirtualHost *:80>
ServerName brewyet.net
DocumentRoot "C:/path/to/your/website/root/directory"
ServerAlias *.brewyet.net
<Directory "C:/path/to/your/website/root/directory">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
ServerAdmin youradminemail@brewyet.net
</Directory>
</VirtualHost>


Give it a try and let me know how you get on.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

problem

Postby paulrb02 » 06. August 2006 18:58

ok I put the text into my httpd-vhosts.conf and restarted apache, and now apache won't start

and http://my.lsu.edu/pbroui2/ is my college webhosting, its just there for time being.
paulrb02
 
Posts: 4
Joined: 06. August 2006 01:56

Postby Izzy » 06. August 2006 23:42

Please paste your httpd-vhost.conf file here so it can be checked for syntax.

Also at a command prompt within the xampp/apache/bin directory issue this command that will return to you the possible errors that are preventing you from stating apache:
apache -S

If the syntax has no errors it will return:
syntax OK
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

ok

Postby paulrb02 » 11. August 2006 04:29

ok I got it to work, the apache -S command said "systemadmin not allowed here" so i jsut deleted it. it starts up. thanx for the help. Now I have my domain name from go daddy. how do I go about telling it to look for the virtual host. I know how to point it at my IP address but is they any other site to help me?
paulrb02
 
Posts: 4
Joined: 06. August 2006 01:56

also

Postby paulrb02 » 11. August 2006 04:33

also I will be moving it to a different port and since my ISP doesn't like port 80
paulrb02
 
Posts: 4
Joined: 06. August 2006 01:56

Postby Izzy » 11. August 2006 04:51

Code: Select all
<VirtualHost *:80>
ServerName brewyet.net
DocumentRoot "C:/path/to/your/website/root/directory"
ServerAlias *.brewyet.net
<Directory "C:/path/to/your/website/root/directory">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
ServerAdmin youradminemail@brewyet.net
</Directory>
</VirtualHost>

Is my error, sorry.
It should have been:
Code: Select all
<VirtualHost *:80>
ServerName brewyet.net
DocumentRoot "C:/path/to/your/website/root/directory"
ServerAlias *.brewyet.net
ServerAdmin youradminemail@brewyet.net
<Directory "C:/path/to/your/website/root/directory">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

OK, now you have your domain name set up at GoDaddy you need to set your nameservers at GD to point to your DNS server.
ns1.yournameserver.com
ns2.yournameserver.com

You can set up a DNS Zone file free at zoneedit.com or no-ip.com or similar that will send requests for your web site to the virtual domain you set up on your XAMPP server. They will provide you with the ns1 and ns2 etc. nameservers that you will need to change at GD in your GD control panel to get it all to work as you expect.

This will let anyone on the Internet no matter where they are use http://www.brewyet.net in their address bar and find your web site. Currently it is being forwarded to another address.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 62 guests