Skip navigation
Currently Being Moderated

Add Site Error - Host Directory does not map to your site Address

Jun 4, 2009 5:32 AM

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

 
Replies
  • Currently Being Moderated
    Jun 4, 2009 5:42 AM   in reply to embnet

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 4, 2009 6:08 AM   in reply to embnet

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 4, 2009 6:30 AM   in reply to embnet

    I've sent you a private message. Please reply and we will try to investigate this further to find the cause of the issue.

     

    Florin

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 4, 2009 8:07 AM   in reply to embnet

    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...

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2009 5:03 AM   in reply to embnet

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2009 5:19 AM   in reply to embnet

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2009 6:07 AM   in reply to embnet

    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>
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2009 12:33 PM   in reply to embnet

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2009 3:29 PM   in reply to embnet

    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)

     

    http://i43.tinypic.com/2mxmptj.gif

     

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 6, 2009 7:59 AM   in reply to embnet

    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?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2009 4:01 AM   in reply to embnet

    Hello,

     

    Can you give more details on what type of mis-configuration of Apache server you've ran into? I guess it will be useful to know for faster debugging of similar cases in the future.

     

    Thank you,

     

    Cristinel

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2009 12:11 PM   in reply to embnet

    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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points