Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    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. (replacing 0s with my ip)

    How do i go about doing this?

  • #2
    Regular Coder
    Join Date
    Oct 2004
    Thanked 13 Times in 13 Posts
    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.

  • #3
    Regular Coder
    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....
    ### 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
    # configuration.

    # Use name-based virtual hosting.
    #NameVirtualHost *

    # 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.
    #<VirtualHost *>
    # ServerAdmin webmaster@dummy-host.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.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts