Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Adding subdomain(s)



Normal Mode | Print  

 Adding subdomain(s), how to add subdomain(s) correctly (3 Replies, Read 9056 times)
austen
Group: Member
Post Group: Newbie
Posts: 5
Status:
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
IP: --   


Threads
 austen   Adding subdomain(s), how to add subdomain(s) correctly (3 Replies, Read 9056 times)
    |--  austen   I must note...   on April 28, 2017, 4:47 am
    |--  romen   1.Log into your...   on May 11, 2017, 5:53 am
    |--  W4CO   Win10 x32/x64 as...   on February 29, 2020, 1:06 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 28, 2024, 5:49 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.065