Closed Thread
Results 1 to 2 of 2
Like Tree3Likes
  • 1 Post By abraralhaq
  • 2 Post By garrettroyce

Thread: How to create virtual host on 10x

  1. #1
    abraralhaq is offline x10Hosting Member abraralhaq is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    1

    How to create virtual host on 10x

    I am running the php project on local by creating virtual host in httpd.conf,but while running the same on 10x i need to write the file name after the url like index.php how can i do it like i am doing on local i,e without spacifieng the filename.

    Thanks..
    dinomirt96 likes this.

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: How to create virtual host on 10x

    This is not done through http.conf nor through virtual hosts. All accounts on X10 will do what you are requesting for any file named "index.php," "index.html," or "index.htm." If you want to make it so that something else is the directory index you can do:

    Code:
    DirectoryIndex somefile.html whatever.php
    So if yoursite.com is your website and you go to yoursite.com/ it will really go to yoursite.com/somefile.html first then yoursite.com/whatever.php
    verlmirt17 and karimirt47 like this.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

Closed Thread

Similar Threads

  1. working with Symfony: Can i have Virtual Host?
    By germana5 in forum Free Hosting
    Replies: 2
    Last Post: 03-10-2010, 05:10 PM
  2. VBS Virtual Hdd
    By thproj in forum Off Topic
    Replies: 1
    Last Post: 07-28-2009, 09:53 AM
  3. Apache Virtual Host Internet Access
    By thezone1 in forum Programming Help
    Replies: 0
    Last Post: 09-01-2008, 08:17 PM
  4. Apache Virtual Host... Help
    By Jewmodel in forum Free Hosting
    Replies: 1
    Last Post: 01-23-2008, 12:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers