probably asked alot but...............I need to know vhosts?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
macmee
-


Joined: 27 Mar 2005
Posts: 15

PostPosted: Mon Mar 20, 2006 3:15 am    Post subject: probably asked alot but...............I need to know vhosts? Reply with quote

hi. I have abyss server 2x and I need to know how to make virtual hosts (vhosts) but I do not know how :( I would like help alot!

Thanks
- David

_________________
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Mon Mar 20, 2006 3:26 am    Post subject: Reply with quote

http://www.aprelium.com/data/doc/2/abyssws-win-doc-html/hosts-add.html
Back to top View user's profile Send private message Visit poster's website
macmee
-


Joined: 27 Mar 2005
Posts: 15

PostPosted: Mon Mar 20, 2006 12:16 pm    Post subject: Reply with quote

ok i just made a new host.. But it doesn't work. going there goes right to the main host.. here is what it looked like:





and i don't even think that is a vhost.because I had to go to http://soku.fixel-hosting.be:1024/ but I could of gone to anything.. even localhost:1024 to get there.. and its a 403 error anyway..:(:(
_________________
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Mar 20, 2006 2:31 pm    Post subject: Reply with quote

Declaring a domain name in Abyss Web Server isn't sufficient to get it to work. You'll have to ensure that this domain name is correctly associated with your IP address and that your network setup (router+firewall) won't block accesses to your web server and that they will reach your computer.

Below is a small tutorial explaining how to declare a new host and how associate it with a domain name. It explains also how to access it and test it locally.

* Create a directory in your hard drive where the files of the site should to be stored. In this example, we'll assume that you will create a new directory called website1 inside C:\sites .
* In Abyss Web Server console, press Add in the Hosts table.
* Enter 80 in the port field.
* Enter the name of the new host in the Host name field (for example www.myhost.com ).

www.myhost.com must be a valid registered domain name. Using your registrar tools, you should configure it to (A record) point to your computer's IP address (for example 111.112.113.114). You don't need to have your DNS server for this. Your registrar usually offers this service for you when buying the domain names. If it doesn't, there are some companies that provide the same service such as http://www.zoneedit.com (free for 5 domain names). If your IP changes frequently, you can use the services of a dynamic DNS services which takes care of IP changes and automatically updates your DNS configuration. You can also use a free domain name such those provided by No-IP or DynDNS.

You should also ensure that your firewall (if you have one) accepts connections made to port 80. You should also configure your router to forward connections made to its external port 80 to the port 80 of the computer where Abyss Web Server is running. This is called port forwarding and the detailed steps to do that are explained in http://www.portforward.com (choose your router brand/model there for the exact instructions).

* Enter C:\sites\website1 in Documents Path (or press Browse and locate the directory where the files of the site are.)
* Enter for example log\website1.log in Log File
* Select the configuration you want to duplicate for the current host in "Copy Configuration From". If you want to start with the default parameters, select Default configuration. Press OK. The new host will be created. All you have to do now is to put the site files in C:\sites\website1 (using Explorer or FTP.) Do not forget to start the new host (press Start in its corresponding row in the Hosts table.)

Now to see if it works, use an external site such as http://www.proxify.com (you can find a more extensive list of sites providing proxying service in http://directory.google.com/Top/Computers/Internet/Proxying_and_Filtering/Hosted_Proxy_Services/Free/CGI_Proxy/ ) to test if http://www.myhost.com is accessible from the rest of the Internet. Notice that you cannot test it locally as most routers doesn't know how to do loopback.

To test your site locally using its domain name, we suggest using this tip: For example, let's say you want to test the host http://www.myhost.com locally. In the computer where you used to browse http://127.0.0.1 to get the web site (which doesn't work anymore since the host has a name), open with Notepad (or any text editor) the file:

C:\WINNT\system32\drivers\etc\hosts (if you are using Windows NT, 2000, or XP Pro)
or
C:\WINDOWS\system32\drivers\etc\hosts (if you are using Windows XP Home or 2003)
or
C:\WINDOWS\hosts (if you are using Windows 95,98, or ME) and add for each of your hosts at the end of that file a line of the form:

127.0.0.1 www.mysite.com

You can also add another line for another host name if you want:

127.0.0.1 www.mysecondsite.com

Save the file and browse http://www.mysite.com locally . You should see the web site.

This file act like a local domain names database. The system does a lookup in it before contacting an external DNS server to resolve the domain name requested in the browser.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Mar 20, 2006 5:32 pm    Post subject: Reply with quote

You probably don't have an index.html or index.htm file in the host's folder.
Make sure that you have an index file in the root. You should also check and
see if "Directory Listing" is enabled.

Note: Some older web browsers don't send the HTTP_HOST header. You
can have a look at the link below for more information on this issue. :-)

Virtual Hosting Hack (Old Timer Browsers)
http://www.aprelium.com/forum/viewtopic.php?p=46622

Sincerely, TRUSTpunk
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group