How to create virtual host on 10x

Status
Not open for further replies.

abraralhaq

New Member
Messages
1
Reaction score
0
Points
0
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..
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
252
Points
63
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
 
Status
Not open for further replies.
Top