hi how make multiple domain by using htdocs xamp?
bec i run 2 server different version s6 and s4 in 1pc
any idea how can make different domain address ?:tongue:
thanks again ragezone family
Printable View
hi how make multiple domain by using htdocs xamp?
bec i run 2 server different version s6 and s4 in 1pc
any idea how can make different domain address ?:tongue:
thanks again ragezone family
On the same PC?
If I'm not mistaken :
Impossible.
is possible :) now my problem the multiple domain for site bec. idont want use exsample htdocs/secondweb/
example http://mujiubus.com/secondweb << to see the second website for second server thats site only ican make any idea for multi domain.. iwant make http://mujiubus.com for s6 http://mujiubus4.com for s4 server ? :love:
What you said is so wrong, you see this technique used everywhere on the internet.
Solution:
Go to xampp/apache/config/httpd-vhosts.conf and setup your values
Example
This settings will make Domain1.com to correspond with files from c:/Path1 and Domain2.com corresponding to c:/Path2.Code:NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@.ro
DocumentRoot c:/Path1
ServerName Domain1.com
ServerAlias Domain1.com
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@.ro
DocumentRoot c:/Path2
ServerName Domain2.com
ServerAlias Domain2.com
</VirtualHost>
(Path1/Path2 is called by default htdocs folder)
Once you have both domains registered just setup your virtual hosts and point them to the same IP address, Apache will do the rest.