I am receiving the following error:
"The specified Host Directory does not map to your Site Address (URL).
The "demos/InContext/" host directory could not be accessed through the Site Address (URL): http://samib.com/".
I have done the following:
1. Installed the apache web server (long ago)
2. Installed, configured and tested an ftp server. ftp server is successfully working.
3. Followed the Adobe tutorial (InContext_Demo) and made the requisted changes.
4. Added the site to my apache server.
The website is successfully accessible: http://samib.com/demos/InContext/news-start.html
I am trying to add the site to InContext but the above error appears while configuring the "Host Directory", "Media Directory" and "Default Page"
My domain "samib.com"' directly points to the root of my ftp server where demos is the sub directory.
I enter the following in the "Add Site" Configuration:
Host Directory: demos/InContext
Media Directory: <leaving it blank>
Default Page: news-start.html
I would appreciate it if anybody could tell me why im receiving the error.
Thanks, in advance
Hello,
In your case, the correct URL that you should enter at step 1 of the wizard is : http://samib.com/demos/InContext/ Meaning the HTTP URL should match the path on the disk (the FTP root + values you have entered for Host Directory)
Please let me know if you have any questions about this.
Thank you,
Florin
Hello,
Thanks for the quick response.
I made the changes. Changed the Site address to http://samib.com/demos/InContext/
I then added the host directory: "demos/InContext/" and "/" (seperately)
Both the host directories gave the same error as mentioned before.
I got the error:
The "/demos/InContext/" host directory could not be accessed through this Site Address: http://samib.com/demos/InContext/.
How are they trying to access the site address? Do they add the host directory to the given URL?
Does the above setup not match: http://samib.com/demos/InContext/demos/InContext ?
Thanks
Hello,
Please try this:
- leave the URL as is: http://samib.com/demos/InContext/
- for the Host Directory field, use the Browse button to select the demos/InContext folder.
Let me know if that works ok for you.
Thank you,
Florin
Now, looking over the code I think I spotted the main issue you're experiencing.
Host Directory: /
It's fine to set up a test site as you have but, InContext must reside in the root directory of your site.
Use Host Directory: /
Move your entire includes forlder to the root, here (if it's not already):
http://samib.com/includes/ice/ice.js
**note** all three files should be moved there; ice.js, ice.conf.js, ide.html
Then you'll want to change all the links that point to it as well
From: <script src="includes/ice/ice.js" type="text/javascript"></script>
To: <script src="http://samib.com/includes/ice/ice.js" type="text/javascript"></script>
I like using the full path as opposed to ../includes/ice/ice.js ... I do it for all my pages, esp in testing phase as I'm often moving the files around alot within varying folders and DW will always default to the ../filename method, which gets lost.
That should get you goin...
Hi.
I created a domain that points directly to the root of my site. The ftp's root is also the root of my site.
I then changed the java script's src of my dreamweaver's html page to
<script src="http://incontext.itfountain.net/includes/ice/ice.js" type="text/javascript"></script>
My root directory structure on my ftp is as follows:
/images {directory}
/includes {directory} (Conaining sub directory "Ice", which contains files: ice.js, ide.html, ice.js)
/Scripts {directory}
/smartObjects {directory}
/SpryAssets {directory}
/styles.css {file}
/index.html {file}
/watch_ad.swf {file}
This means I should be able to add a site with the "site address: http://incontext.itfountain.net/ "and the "Host Directory: /"
The ftp, site url, host directory, etc... is the same as specified in my site management setup in Dreamweaver which is working fine.
Well, I still reveive the error.
Any other ideas?
Thanks in advance
I believe it is choking on the address: http://incontext.itfountain.net/includes/ice/ice.js
That isn't actually the ROOT... its still a sub-directory! The root would be http://www.itfountain.net/includes/ice/ice.js
Move your includes folder to that root & point to that directory & it will work.
Hi.
Im a bit confused...
If I may ask...why would http://incontext.itfountain.net/includes/ice/ice.js be the root of my site?
Isn't the root the parent directory where the main index.html page is stored.
I know the domain "incontext.itfountain.net" registered at dyndns is a domain address actually pointing to a sub directory of many other directories on my system, but as I understand, the domain address (incontext.itfountian.net/) is actually the root of my domain and all the "/directory/direcory/direcotry" following the domain address are the directories.
--> root
|----->sub-directory
|-----> sub directory of the subdirectory
|-----> etc.
incontext.itountain.net is pointing to "/" (of the address)
incontext.itfountain.net/includes/ice/ice.js is pointing to "/includes/ice/ice.js"
It seems that your configuration is working and mine is not...
If you don't mind. I have 3 Questions...
Unfotunately it doesn't work that way.. by root, they mean the VERY root of the domain
In your case, you've essentially created the following structure (which won't work):
--> root{www}
|----->incontext
|----->includes
|----->scripts
|----->etc...
|----->sub-directory
|-----> sub directory of the subdirectory
|-----> etc.
the way that their hosted service works it will ONLY work if you place the includes files as follows:
--> root{www}
|----->includes
You can place the test site where ever you want within that domain in any subdirectory you like, but the includes must reside at the root of the www.
As for the configuration (and same problem).. see http://forums.adobe.com/message/1981469#1981469
Ok. I'll give it a try. Will copy the includes folder to the actual root of my domain address. and not store it as a subdirectoy in the InContext directory. If it works that way then it will be a bit confusing when adding other InContext Editing sites.
I will tell you if it worked.
Thanks
Nope, it did not work. I got the same error.
I move the includes folder to the root where InContext is placed.
i.e
root (www)
|--> InContext
|-->Includes
Includes is not a sub directory of InContext. It iwas moved to the same hierarchy level as InContext, which is stored under www (root) ROOT.
They are both (includes and InContext) at the root level of my webserver where samib.com is pointing to.
On this page: http://samib.com/InContext/
you have:
<script src="http://incontext.itfountain.net/includes/ice/ice.js" type="text/javascript"></script>
should be:
<script src="http://www.samib.com/includes/ice/ice.js" type="text/javascript"></script>
Ok. I made the changes. What should I use for the site address, host directory and media directory?
Should the following work?
site: http://samib.com/InContext/
host directory: InContext/ (as given when clicking on browse)
media directory: <blank>
filename: index.html
site: http://samib.com/InContext/
host directory: InContext/ OR just try a simple / (should also be fine as ICE resides there)
media directory: create a directory, it can be empty and use it.
filename: index.html
All though should be fine. The only other issue I have sen people having has to do with server requirements for the host directory as some want "/www/www/" and others want a "/" and one guy used "."
I think you'll be OK now that your root and link to the js are corrected.
bizarre...
what are you using for the Host Directory?
What did you use for a Media Directory?
And, how far are you making it through the setup process? When you choose "Test Conection", are you able to conect?
Did you try toggling Passive FTP?
Your settings should look something like this in the end (click image to enlarge)
Also, I asked Corey to take a look at this... Now that all your other settings are correct, it may require further testing within Adobe's system to determine the rest of your issue. I believe it may have somethign to do with your personal server configuration as you are running this off a personal server and I can't test that setup.
I use a variety of different paths (individually) for host address to see if any one of them work because I don't actually know what the host directory should contain nor what file they are looking for. Sometimes I try / and other times I click on browse so that I can select the directory where everything is stored. That would be the main directory containing the html page and the other directories like scripts, images, etc. The media directory is left blank.
Example:
I select InContext from the following list as the host dir.
This list is from the www root
includes
|--> Ice --> .js files
inContext
|--> Scripts
|--> Images
|--> styles.css
|--> index.html
|--> etc.
The ftp test is successful but I get an error message (see topic) when I click on save after I entered the host directory. I'm then returned to the setup part where the host directory should be entered. After alot of frustrating attempts to add a site I click on cancel to try another time. ![]()
Just for kicks... try entering this:
site: http://samib.com/InContext/
host directory: ../
I think using the "../" should take it down a directory level to where the includes folder actually resides.
Also, how are you forwarding your sites? htaccess?
Nope. "../" did not work.
I've got an apache webserver. My domain (samib.com) registered at dyndns points directly to my router, which port forward incomming traffic to my linux server (suse), etc...
I could try
http://samib.com/InContext/ with "./../"
http://samib.com/InContext/ with "../"
http://samib.com/InContext/ with "/"
http://samib.com with "/InContext"
http://samib.com with "/InContext/"
http://samib.com with "./InContext/../"
etc.
etc.
None of those work. I think I'm missing the actual problem. It could be something else.
Do you maybe have a link to a working sample? Then I could compare it with this test site im trying to add.
Hi,
I just reinstalled apache server and changed my domain settings at dyndns.
My previous domain settings at DynDns: (for example)
domain.com "was linked to" 123.123.123.123
www.domain.com "was linked to" http://domain.com/sites/site
I changed my domain settings by making www.domain.com an alias of domain.com:
domain.com "is now linked to" 123.123.123.123
www.domain.com "is now linked to" domain.com (CNAME)
After apache server 2.2 was reinstalled. I configured each site seperately by creating a conf file for each site.
The conf file of each site was placed in /etc/apache2/sites-available/
A link to each of those files was created in /etc/apache2/sites-enabled/
(for example: ln -S /etc/apache2/sites-enabled/www.domain.com /etc/apache2/sites-available/www.domain.com)
...
.....
I think the main problem was that I manually linked www.domain.com to a specific path (such as http://domain.com/sites/site1) instead of allowing the apache web server to do it for me.
Message was edited by: ITFountain CS
After having read this thread and attempted many variations suggested here I was still unable to get past the error which is the title of this thread. I am using an offsite host since I will ultimately not be the host myself.
The ftp root provided by the host is one level higher than the site root.
That is http://mysite.myhost.com/myusername (my root) points to a subdirectory of the ftp root at ftp.myhost.com.
Within the ftp root is public_html/ under which I'd like to put various web site roots such as
public_html/site1, public_html/site2, etc.
However, regardless of setting by Host Directory to public_html/ or one of its subdirectories, I still get the error.
Are there any more help files on this?
Thanks.
North America
Europe, Middle East and Africa
Asia Pacific