Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: ip subdomains- how to?
12-20-2005, 07:15 PM #1
- Join Date
- Aug 2005
- Thanked 1 Time in 1 Post
ip subdomains- how to?
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, 08:56 PM #2
- Join Date
- Oct 2004
- Thanked 13 Times in 13 Posts
12-21-2005, 06:08 AM #3
- Join Date
- Dec 2005
- Thanked 0 Times in 0 Posts
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....Around line 259 their is a small amount of info on this....### 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
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.