Results 1 to 5 of 5

Thread: ../ in SSI

  1. #1
    Join Date
    Dec 2008

    ../ in SSI

    I am in the process of a website redesign for a local historian. She currently uses notepad to create her site and every file is in a single directory and every file contains all the coding for a single page. Here site is growing rapidly, tracing the history of more and more families.

    Im trying to layout her new site with each family in its own directory and use Server Side Includes (SSI) to simplify her coding. Im also using Variable HTML to allow her to float her navigation from the bottom of each page to the sides as the page width increases.

    When I put my first cut of a How To manual on line for her to see (note this is still being done in my own directory, not her website yet) I discovered a problem with SSI on my Linux hosting server. Basically, the ../ does not work in the filenames. I know that I can just duplicate the included files for things like banner and signature in every family directory, but since these items will be identical on every page of the website, I want them to exist only once in the root directory.

    So, finally my question, does anyone know how to make the ../ work on Linux?

    A complete demo of the problem is viewable at http://bitwarehosting.com/MIM/HowTo/ the page is full of an error occurred while processing this directive messages. One appears for every ../ included file. You can see the coding of the main structure of the new site at http://bitwarehosting.com/MIM/HowTo/ssi.shtml . You can see a picutre of the directory layout at http://bitwarehosting.com/MIM/HowTo/chart.shtml. You can also get a full description of what I'm trying to do by following the links on any of these pages. Use this link to see what these pages should look like: http://bitwarehosting.com/MIM/. Note that her home page does NOT contain a link to the how to section, that isfor her eyes only. Also, feel free to adjust the width of yoru browser screen and see how the design of the site changes; your comments on that are welcome also.

    Please note, these pages were designed to match what the historian was doing with notepad.

    I looked into using include virtual and creating an Include directory, but on my local IIS server the initial / takes me to c:\Inetpub\wwwroot Im not sure where this will take me on a Linux server with virtual domains.

    So, any suggestions on how to make all this work? Like I said, my fallback is to just duplicate the 5 root based included files in every sub directory.

    Thanks in advance for any feedback that I receive


  2. #2
    Join Date
    Jan 2009
    I would recommend using "/". Depending on how the virtual servers have been configured it might take to to the equivalent to "webroot" or it might to take you to the uppermost folder of that virtual server. Give it a try and post back here if it doesn't work and I'll give a real stab at it using my linux box.

  3. #3
    Join Date
    Dec 2008
    Thanks for the response criteron9,

    I tried that on my IIS box and it took me to c:\Inetpub\wwwroot . I also tried it on my reseller account and can't find where it is takign me. I don't have complee access tothe Linux reseller box, so I can't trace it completely.

  4. #4
    Join Date
    Jan 2009
    I gave it a quick try on my linux box and found that "/" takes me consistently to the highest directory under the virtual server. Ex: I have a subdomain of mine.example.com. The file system is that all virtual servers reside in the "/home" space and are delineated by logon. Using "/" puts me at "/home/mine/www/". I also have another domain of example2.com and that resides on the file system at "/var/www/" so when I use "/" I am placed at "/var/www/".

    Does that help?

  5. #5
    Join Date
    Dec 2008

    I'm running a test on my servers at AIT and will post my results when I am done. My problem still exists in that my home server treats / as c:\Inetpub\wwwroot and whatever the AIT server does will not match. That will make it difficult to test at home, then deploy the exact coding. I'm sre there is a workaroudn for that, like naming the include directories with domain tags, like /inc-thisdomain and /inc-thatdomain. Then I could just have those directories in c:\Inetpub\wwwroot on my development system and in the root of my virtual hosting domain on the AIT server. First indication at AIT are thet / might very well take me to the root of each virtual domain. If that continues to be the case, this is a solution that might work. Still wish I could get the ../ to work properly, but you can't alwasy have the perfect solution.

    Thanks again


    PS: I use that name because I was taught all about computers by the Army in 1967!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.12825 seconds
  • Memory Usage 2,876KB
  • Queries Executed 13 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (5)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (71):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates