+ Post New Thread
Results 1 to 2 of 2
How do you do....it? Thread, Wildcards in Apache virtual server in Technical; Hi there What wildcards can i use in the httpd.conf file for apache please? This is an example of my ...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,843
    Thank Post
    876
    Thanked 1,679 Times in 1,459 Posts
    Blog Entries
    12
    Rep Power
    444

    Wildcards in Apache virtual server

    Hi there

    What wildcards can i use in the httpd.conf file for apache please?

    This is an example of my virtual server settings

    <VirtualHost *>
    ServerName www.website.com
    DocumentRoot "C:/xampp/htdocs/website
    </VirtualHost>
    but if i user types notreal.website.com they get the holding page of our webserver (school name webserver, with our school logo). how would i config apache so that anything on that domain goes to the above directory?

    i have tried this and it doesnt work

    <VirtualHost *>
    ServerName *.website.com
    DocumentRoot "C:/xampp/htdocs/website
    </VirtualHost>
    hope you understand, thanks
    Last edited by FN-GM; 16th September 2008 at 03:06 PM.

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Use a default vhost.

    Code:
        <VirtualHost _default_:*>
        DocumentRoot /www/default
        ...
        </VirtualHost>

SHARE:
+ Post New Thread

Similar Threads

  1. VBScript, wildcards or file extensions
    By Bobo in forum Windows
    Replies: 4
    Last Post: 25th August 2011, 04:58 PM
  2. Virtual Apache Servers
    By FN-GM in forum How do you do....it?
    Replies: 6
    Last Post: 30th May 2008, 08:18 PM
  3. Apache Virtual Hosting
    By Steven in forum Wireless Networks
    Replies: 6
    Last Post: 25th May 2008, 11:27 PM
  4. Virtual Machine.... Server 03
    By kiran in forum Thin Client and Virtual Machines
    Replies: 5
    Last Post: 26th February 2007, 06:51 PM
  5. Virtual Server 2005 R2 kills server network connection
    By ajbritton in forum Thin Client and Virtual Machines
    Replies: 0
    Last Post: 31st August 2006, 06:19 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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