View Full Version : ip subdomains- how to?
12-20-2005, 08:15 PM
How can i create subdomains on my server? My server is on windows 2000 running phpdev. I don't have a domain name, so im just using the ip. I want to be able to make things like
http://extra.00.000.000.000 (replacing 0s with my ip)
How do i go about doing this?
12-20-2005, 09:56 PM
I don't think you can. I suggest you go to www.dyndns.com and get a free subdomain, make sure you tick the wildcard box so you can have any subdomain you want.
12-21-2005, 07:08 AM
I remember from an earlier post you use phpDev. In the root folder of phpDev you have a Apache folder. Find this file. I have been told that there is a way to set up virtual host & domains & I believe sub domains. I haven't had any luck at getting this to work. I have spent hours once trying to get it to work. I have tried the IP based & Name based. Nothing works for me.
You can open it in like notepad or something...
Here is the part of that file in case you can't find it....
### Section 3: Virtual Hosts
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
# Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
# for further details before you try to setup virtual hosts.
# You may use the command line option '-S' to verify your virtual host
# Use name-based virtual hosting.
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
# ServerAdmin email@example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
Around line 259 their is a small amount of info on this....
Online 1045 is the virtual host section....The way I understand it is that you can make a virtual domain called codingforums.com & enter a intranet type ip & when you type in the IP in the URL it pulls up that site on the localhost/intranet.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.