Welcome Guest. Please Login or Register  


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



Threaded Mode | Print  

 Adding subdomain(s), how to add subdomain(s) correctly (2 Replies, Read 4508 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: --   

Adding subdomain(s)
austen
Group: Member
Post Group: Newbie
Posts: 5
Status:
I must note that when adding more domain(s) via http://localhost/ampps/index.php

It reverts the file back, so every time you'll have to change it how you did before.

Cordially,

Austen
IP: --   

Adding subdomain(s)
romen
Group: Member
Post Group: Newbie
Posts: 1
Status:
1.Log into your AccountCenter.
2.Click on DOMAINS at the top of the screen and then choose ADD NEW DOMAIN OR SERVICE.
3.Under ADD DOMAINS, click the ADD DOMAIN button.
4.Type in your domain or subdomain. Be sure not to use any of the following subdomains: www, FTP, mail.
5.If you're adding a subdomain, you will see a warning box. Please read the message and click the check box to proceed.
6.Now, select your server of choice. Then click on Next Step.
ac_mainmenu_add_domain_service_domain_choose


-----------------------
Web hosting
Hostmybytes
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is February 26, 2020, 9:54 am.

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