Softaculous


Topic : how to add vhost ampps windows


Posted By: thanh858036 on March 2, 2015, 1:34 pm
i add multi domain: domain.com domain1.com domain2.com but i access but all domain always to root folder

Posted By: Rishi_P on March 5, 2015, 10:49 am | Post: 1
Hi thanh858036,

show me your httpd-vhosts file.
It is in \Ampps\apache\conf\extra folder

Posted By: thanh858036 on March 5, 2015, 11:16 am | Post: 2
PHP Code

 #DO NOT EDIT, CREATED BY AMPPS

            
#### domain.com VirtualHost ####
            

<VirtualHost domain.com:80>
<
Directory "c:/program files (x86)/ampps/www/domain.com">
Options FollowSymLinks Indexes
AllowOverride All
Order deny
,allow
allow from All
</Directory>
ServerName Default
ServerAlias Default
ScriptAlias /cgi-bin"c:/program files (x86)/ampps/www/domain.com/cgi-bin/"
DocumentRoot "c:/program files (x86)/ampps/www/domain.com"
ErrorLog "C:/Program Files (x86)/Ampps/apache/logs/domain.com.err"
CustomLog "C:/Program Files (x86)/Ampps/apache/logs/domain.com.log" combined
</VirtualHost>

####################################
            
#### domain1.com VirtualHost ####
            

<VirtualHost domain1.com:80>
<
Directory "c:/program files (x86)/ampps/www/domain1.com">
Options FollowSymLinks Indexes
AllowOverride All
Order deny
,allow
allow from All
</Directory>
ServerName domain1.com
ServerAlias domain1
.com
ScriptAlias 
/cgi-bin"c:/program files (x86)/ampps/www/domain1.com/cgi-bin/"
DocumentRoot "c:/program files (x86)/ampps/www/domain1.com"
ErrorLog "C:/Program Files (x86)/Ampps/apache/logs/domain1.com.err"
CustomLog "C:/Program Files (x86)/Ampps/apache/logs/domain1.com.log" combined
</VirtualHost>

####################################
            
#### domain2.com VirtualHost ####
            

<VirtualHost domain2.com:80>
<
Directory "c:/program files (x86)/ampps/www/domain2.com">
Options FollowSymLinks Indexes
AllowOverride All
Order deny
,allow
allow from All
</Directory>
ServerName domain2.com
ServerAlias domain2
.com
ScriptAlias 
/cgi-bin"c:/program files (x86)/ampps/www/domain2.com/cgi-bin/"
DocumentRoot "c:/program files (x86)/ampps/www/domain2.com"
ErrorLog "C:/Program Files (x86)/Ampps/apache/logs/domain2.com.err"
CustomLog "C:/Program Files (x86)/Ampps/apache/logs/domain2.com.log" combined
</VirtualHost>

#################################### 



all domain access to first vhost folder c:/program files (x86)/ampps/www/domain.com

Posted By: thanh858036 on March 5, 2015, 11:19 am | Post: 3
and i don't check
Code
Add an entry to Host File ?

Posted By: Rishi_P on March 5, 2015, 12:54 pm | Post: 4
Hi thanh85803,

Please open support ticket and leave Team Viewer details.
https://www.softaculous.com/support/

       

Posted By: thanh858036 on March 5, 2015, 1:01 pm | Post: 5
i sent support ticket

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.