DeveloperSide.NET Forums
December 12, 2019, 08:13:41 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Fix: Getting a 403/Forbidden HTTP access code after creating a (dynamic) site  (Read 9378 times)
0 Members and 1 Guest are viewing this topic.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« on: May 03, 2010, 05:25:49 PM »

A 403/Forbidden code would be a result of creating the wrong folder structure under the vhosts\_dynamic folder to represent your site.

Here are some examples of creating a proper site with the "dynamic domain" feature of the Suite:

The folder structure here is based on the "host.domain.tld" template (tld is short for "top level domain": com, net, org, etc). The domain.tld is always composed of exactly two parts : domain and tld. While the host can be composed of zero, one, or more parts. If the host has no parts, we represent it with the underscore character: _ .

In example:
example.com has domain.tld of "example.com" and host of "_"
www.example.com has domain.tld of "example.com" and host of "www"
www.example.co.uk has domain.tld of "co.uk" and host of "www.example"

And we can even represent URL http://192.168.0.1 with a domain.tld of "0.1" and host of "192.168" (it's a trick we use to represent a "dynamic domain" site via IP address access) to get it to work with the "dynamic domain" feature of the Suite.

Note again: The folder structure that will represent your site is separated into two parts: the host and the domain.tld parts. The "domain.tld" is defined as the first two parts from the right and the "host" is defined as everything else. If there is no host, then we represent it's [document] folder with "_".


To create site www.example.com
Create these folders:
vhosts\_dynamic\example.com\ is just the root folder that contains the hosts; is not a URL; is not accessible
vhosts\dynamic\example.com\_\ becomes http://example.com
vhosts\_dynamic\example.com\www\ becomes http://www.example.com

To create site www.example.co.uk
Create these folders:
vhosts\_dynamic\co.uk\ is just the root folder that contains the hosts; is not a URL; is not accessible
vhosts\_dynamic\co.uk\_\ becomes http://co.uk
vhosts\_dynamic\co.uk\example\ becomes http://example.co.uk
vhosts\_dynamic\co.uk\www.example\ becomes http://www.example.co.uk

To create site "192.168.0.1" (IP site)
Create this folder:
vhosts\_dynamic\0.1\ is just the root folder that contains the hosts; is not a URL; is not accessible
vhosts\_dynamic\0.1\192.168\ becomes http://192.168.0.1
« Last Edit: May 03, 2010, 07:04:54 PM by admin » Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!