Apache Error Unable To Include File
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of an error occurred while processing this directive ssi this site About Us Learn more about Stack Overflow the company Business unable to include in parsed file Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask allowoverride Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Server Side Includes up vote 0 down vote favorite I got the following error message in the Apache log: unable to include potential exec "header.html" in parsed file /Users/sikusiku/Sites/ss-git/homepage.shtml I basically tried to include header.html from homepage.shtml. I used the very basic directive in homepage.html (both header.html and homepage.shtml are located in the document root): I think I have properly turned on the SSI in my httpd.conf: Options Indexes FollowSymLinks ExecCGI Includes ... AddType text/html .shtml ... # XBitHack doesn't have anything to do with this, but I added it anyway. XBitHack on Did I miss anything? Does the included file i.e. header.html need to be configured differently? html apache2 server-side-includes share|improve this question asked Sep 18 '11 at 14:21 moey 3,310135185 1 You don't need the XBitHack when you've named the file shtml. And if the header.html is in the same directory like the shtml, just do a –ott-- Sep 18 '11 at 14:33 Try virtual="/header.html". Otherwise; the error seems to imply some permission error. Try to chmod the header.html to not be executable. –Gerben Sep 18 '11 at 14:35 Unfortunately, those two suggestions didn't work. –moey Sep 18 '11 at 15:51 One other thing that's different at my site: I have "Options +Includes" in the apache config. Has the error message in the logfile changed? –ott-- Sep 18 '11 at 15:59 Tried Options +Includes, Options Includes -IncludesNOEXEC... none worked. –moey Sep 18 '11
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can http://stackoverflow.com/questions/7462063/server-side-includes ask a question Anybody can answer The best answers are voted up and rise to the top in an SSI include, can the file being included be redirected in an .htaccess file up vote 1 down vote favorite I have some old html pages that have SSI includes in them to include certain html in all the pages. So, the SSI looks something http://serverfault.com/questions/280053/in-an-ssi-include-can-the-file-being-included-be-redirected-in-an-htaccess-fil like this: But I want to move that included file from /includes/noNav/footercode.html to /includes/footercode.html so I implemented a redirect in an .htaccess file like this: # Redirect permanent /includes/noNav/footercode.html http://intranet.myorg.org/includes/footercode.html But now I get errors saying "unable to include "/includes/noNav/footercode.html" in parsed file" So, do redirects not work on included files? Also, if I browse directly to the old path, it will correctly redirect me. But it fails if the path is included. apache-2.2 .htaccess redirect server-side-includes share|improve this question edited Jun 13 '11 at 20:51 asked Jun 13 '11 at 20:42 kidbrax 1085 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted The SSI is parsed as part of the apache SSI module and does not make web requests back to Apache in order to retrieve the file. As it does not use HTTP back to Apache to retrieve the files specified by #include, no rewrite or redirect rules are applied. The virtual= directive finds a file starting at ServerRoot, while the file= directive finds a file in the same directory as the current page. sha
| fr | ja | ko Server-side includes provide a means to add dynamic content to existing HTML documents. https://httpd.apache.org/docs/current/howto/ssi.html Introduction What are SSI? Configuring your server to permit SSI Basic SSI directives Additional examples What else can I config? Executing commands Advanced SSI techniques Conclusion See alsoComments https://forums.opensuse.org/showthread.php/387643-Problem-with-Apache-httpd-conf Introduction Related ModulesRelated Directivesmod_includemod_cgimod_expiresOptionsXBitHackAddTypeSetOutputFilterBrowserMatchNoCase This article deals with Server Side Includes, usually called simply SSI. In this article, I'll unable to talk about configuring your server to permit SSI, and introduce some basic SSI techniques for adding dynamic content to your existing HTML pages. In the latter part of the article, we'll talk about some of the somewhat more advanced things that can be done with SSI, such as conditional statements in your SSI directives. What are unable to include SSI? SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing HTML page, without having to serve the entire page via a CGI program, or other dynamic technology. For example, you might place a directive into an existing HTML page, such as: And, when the page is served, this fragment will be evaluated and replaced with its value: Tuesday, 15-Jan-2013 19:28:54 EST The decision of when to use SSI, and when to have your page entirely generated by some program, is usually a matter of how much of the page is static, and how much needs to be recalculated every time the page is served. SSI is a great way to add small pieces of information, such as the current time - shown above. But if a majority of your page is being generated at the time th
Help Here Applications Problem with Apache httpd.conf Welcome! If this is your first visit, be sure to check out the FAQ. You will have to register before you can post in the forums. (Be aware the forums do not accept user names with a dash "-") Also, logging in lets you avoid the CAPTCHA verification when searching . Select Articles, Forum, or Blog. Posting in the Forums implies acceptance of the Terms and Conditions. Results 1 to 4 of 4 Thread: Problem with Apache httpd.conf Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 27-Jun-2008,03:34 #1 eeijlar View Profile View Forum Posts View Blog Entries View Articles Busy Penguin Join Date Jun 2008 Location Dublin, Ireland Posts 298 Problem with Apache httpd.conf Hi, I have installed Apached/PHP5/MySQL as per this guide: Cool Solutions: Installing Apache, PHP, and MySQL on SUSE Linux Professional I am trying to browse to the link: http://localhost/phpMyAdmin/ which is in: /srv/www/htdocs I get this error when I browse to the page: [an error occurred while processing this directive] In my Apache logs, I get this error: Code: [Fri Jun 27 11:28:21 2008] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/phpMyAdmin/ [Fri Jun 27 11:28:21 2008] [error] [client 127.0.0.1] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var [Fri Jun 27 11:28:21 2008] [error] [client 127.0.0.1] unable to include potential exec "include/bottom.html" in parsed file /usr/share/apache2/error/HTTP_FORBIDDEN.html.var My httpd.conf is: Code: # # /etc/apache2/httpd.conf # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See