Note: Since there was not a guide section I was not sure where to put this, so it ended up here -- feel free to move it to the proper location on the forums.
Open file drive:/installationlocationhere/Ampps/apache/conf/httpd-vhosts.conf
Open it in notepad
Alright so the default way that the server does it is the following format:
Code #### SUBEXAMPLE.YOURDOMAINHERE.COM VirtualHost ####
<VirtualHost SUBEXAMPLE.YOURDOMAINHERE.COM:80>
<Directory "c:/users/giebe/desktop/hosting_files/ampps/www/subexample.yourdomainhere.com">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ServerName SUBEXAMPLE.YOURDOMAINHERE.COM
ServerAlias SUBEXAMPLE.YOURDOMAINHERE.COM
ScriptAlias /cgi-bin/ "c:/users/giebe/desktop/hosting_files/ampps/www/subexample.yourdomainhere.com/cgi-bin/"
DocumentRoot "c:/users/giebe/desktop/hosting_files/ampps/www/subexample.yourdomainhere.com"
ErrorLog "C:/Users/giebe/Desktop/HOSTING_FILES/Ampps/apache/logs/SUBEXAMPLE.YOURDOMAINHERE.COM.err"
CustomLog "C:/Users/giebe/Desktop/HOSTING_FILES/Ampps/apache/logs/SUBEXAMPLE.YOURDOMAINHERE.COM.log" combined
</VirtualHost>
####################################
The only thing you're going to change is this:
This is the line you're going to change:
Code <VirtualHost SUBEXAMPLE.YOURDOMAINHERE.COM:80>
All you do is change: <VirtualHost SUBEXAMPLE.YOURDOMAINHERE.COM:80>
To: <VirtualHost *:80>
So all in all the final code will look like the following..
Code #### austenjgreen.com VirtualHost ####
<VirtualHost *:80>
<Directory "d:/development/web_development/websites/portfolio/finished_websites/austenjgreen.com">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ServerName austenjgreen.com
ServerAlias austenjgreen.com
ScriptAlias /cgi-bin/ "d:/development/web_development/websites/portfolio/finished_websites/austenjgreen.com/cgi-bin/"
DocumentRoot "d:/development/web_development/websites/portfolio/finished_websites/austenjgreen.com"
ErrorLog "C:/Users/giebe/Desktop/HOSTING_FILES/Ampps/apache/logs/austenjgreen.com.err"
CustomLog "C:/Users/giebe/Desktop/HOSTING_FILES/Ampps/apache/logs/austenjgreen.com.log" combined
</VirtualHost>
####################################
Ampps will now properly load that subdomain. For each time you want to add more subdomain(s) just do the aforementioned once again.
Cordially,
Austen
|