newphpcoder Posted November 27, 2010 Share Posted November 27, 2010 Good day!I am used the ff: to up my webpageWindows Server 2003 32 BitXampp 1.7.1My folder that consist of my php file was on the htdocs folder. When I run http:\\localhost\MYFOLDER\index.phpMy webpage was appear or run. But I want to happen is the client will only input the url like this : site.dlp.phI dont know how can i do that,, because i'm not familiar with the apache.I want that the other computer can access my webpage using intranet.I tried to used virtual host like this:<Virtual Host 182.10.10.101>Document Root "C:\xampp\htdocs\MYFOLDER\index.php"Server Name dllp.ph</Virtual Host>When I run the http:\\182.10.10.101the output is the webpage of xampp I also create a DNS forward lookupzone but it did not work.I hope somebody can help me.Thank you Link to comment Share on other sites More sharing options...
boen_robot Posted November 27, 2010 Share Posted November 27, 2010 First things first, it's <VirtualHost ...>...</VirtualHost> not <Virtual Host ...>...</Virtual Host> And it's ServerName dllp.ph not Server Name dllp.ph Also, those are to be added in httpd.conf, not in .htaccess (I'm saying that just in case... you never specified what are you editing).Last but not least, the document root is a folder, not a file; "DocumentRoot" must also be a single word, and you use forward slashes for Apache, despite the fact Windows uses backslashes. Replace Document Root "C:\xampp\htdocs\MYFOLDER\index.php" with DocumentRoot "C:/xampp/htdocs/MYFOLDER" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.