Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Creating a new domain



Threaded Mode | Print  

 Creating a new domain, Without using AMPPS api (1 Replies, Read 3194 times)
Ghinko
Group: Member
Post Group: Newbie
Posts: 1
Status:
I am having a trouble creating new domain.
I have tried to add this string to hosts file in etc\drivers
PHP Code

 127.0.0.1         testlogin 


And also next strings to httpd-vhosts.conf file in Apache
PHP Code

 #### testlogin VirtualHost ####
<VirtualHost testlogin:80>
<
Directory "C:/Program Files/Ampps/www/testlogin">
Options FollowSymLinks Indexes
AllowOverride All
Order deny
,allow
allow from All
</Directory>
ServerName testlogin
ServerAlias testlogin
ScriptAlias 
/cgi-bin"C:/Program Files/Ampps/www/testlogin/cgi-bin/"
DocumentRoot "C:/Program Files/Ampps/www/testlogin"
ErrorLog "C:/Program Files/Ampps/apache/logs/testlogin.err"
CustomLog "C:/Program Files/Ampps/apache/logs/testlogin.log" combined
</VirtualHost



But still i cant access new domain 'testlogin'. Have i missed something? Any valid reason why this didnt work?
IP: --   

Creating a new domain
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Quote From : Ghinko November 13, 2013, 1:06 pm
I am having a trouble creating new domain.
I have tried to add this string to hosts file in etc\drivers
PHP Code

 127.0.0.1         testlogin 


And also next strings to httpd-vhosts.conf file in Apache
PHP Code

 #### testlogin VirtualHost ####
<VirtualHost testlogin:80>
<
Directory "C:/Program Files/Ampps/www/testlogin">
Options FollowSymLinks Indexes
AllowOverride All
Order deny
,allow
allow from All
</Directory>
ServerName testlogin
ServerAlias testlogin
ScriptAlias 
/cgi-bin"C:/Program Files/Ampps/www/testlogin/cgi-bin/"
DocumentRoot "C:/Program Files/Ampps/www/testlogin"
ErrorLog "C:/Program Files/Ampps/apache/logs/testlogin.err"
CustomLog "C:/Program Files/Ampps/apache/logs/testlogin.log" combined
</VirtualHost



But still i cant access new domain 'testlogin'. Have i missed something? Any valid reason why this didnt work?


PHP Code

 #### testlogin VirtualHost ####
<VirtualHost 127.0.0.1:80>
<
Directory "C:/Program Files/Ampps/www/testlogin">
Options FollowSymLinks Indexes
AllowOverride All
Order deny
,allow
allow from All
</Directory>
ServerName testlogin
ServerAlias testlogin
ScriptAlias 
/cgi-bin"C:/Program Files/Ampps/www/testlogin/cgi-bin/"
DocumentRoot "C:/Program Files/Ampps/www/testlogin"
ErrorLog "C:/Program Files/Ampps/apache/logs/testlogin.err"
CustomLog "C:/Program Files/Ampps/apache/logs/testlogin.log" combined
</VirtualHost



Notice the change in VirtualHost tag. testlogin to 127.0.0.1


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 15, 2024, 7:39 pm.

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