Questions tagged [server-side-includes]

Server Side Includes (SSI) is a simple interpreted server-side scripting language used almost exclusively for the Web. The most frequent use of SSI is to include the contents of one or more files into a web page on a web server.

References

48 questions
2
votes
2 answers

nginx proxy caching and ssi

I am using nginx for caching requests from the upstream apache server, however I want few blocks inside to be fetched from apache all the time. I am hoping ssi can do this, but the SSI tags are outputted to the user without being preprocessed. …
digitalPBK
  • 121
  • 4
2
votes
1 answer

Why does my SetEnvIfNoCase directive does not match requested URI?

I'm attempting to set up Apache such that various error pages display with headers/footers appropriate to the context of the error. If the user was requesting a corporate page, I want to show the error with the corporate look and feel. If the error…
vezult
  • 420
  • 2
  • 6
  • 15
2
votes
1 answer

Limit SSI capabilities to only include files

Is there a way to enable SSI on a server (running apache), but only allow the include element () and not any other?
user75388
2
votes
2 answers

How to enable SSI for all html files?

I use MAMP to develop sites. I have each site in it's own folder in the htdocs folder. I manage one site that I need to use ssi directives on, because the host doesn't allow php includes. I've un-commented these lines in httpd.conf file: AddType…
Jamie
  • 123
  • 1
  • 4
2
votes
2 answers

How can I enable SSI on HTML pages on GoDaddy (Windows hosting)?

I wish to enable SSI's (server-side includes) on my HTML pages on GoDaddy. I want lines like this to be processed properly: Is this possible and how can it be done?
jonathanconway
  • 567
  • 5
  • 7
  • 18
2
votes
1 answer

HTAccess Directory Index with PHP-Files

I'm currently trying to fancy up my directory index a little - To do so, I already managed to create a decent layout around the created table - But now, I need to add some scripting, too. As I'm most familiar with PHP, I figured I could just replace…
F.P
  • 153
  • 4
  • 15
1
vote
1 answer

How to enable SSI in Ubuntu 16.04?

I have an html page with SSI and I was trying for enabling SSI in my apache (V 2.4.18) running on Ubuntu 16.04. As per the guidelines here, I tried editing /etc/apache2/apache2.conf file and now included following directives,
Donjin
  • 11
  • 3
1
vote
2 answers

DBD: Can't load driver file apr_dbd_mysql.so

I am using Apache 2 on a virtual machine running a LAMP stack (mysql version 5.6). When I try to restart the server I am getting this error; DBD: Can't load driver file apr_dbd_mysql.so I have made sure that the apr_dbd_mysql.so file is inside the…
1
vote
0 answers

PHP SSI with NGINX

I've got a really old website I'd like try running on NGINX instead of Apache. This site consists of many flat HTML files with sporadic PHP SSIs, such as: How does does the NGINX HttpSsiModule handle these…
Dmitry Minkovsky
  • 557
  • 3
  • 9
  • 22
1
vote
1 answer

Nginx ssi with proxy_cache hanging after first request

I am using Nginx's proxy cache for our dynamic pages and have recently integrated ssi. The first page load works fine but once the page is cached and another request comes through the page just hangs. The logs seem to indicate multiple sub-requests…
George
  • 123
  • 5
1
vote
1 answer

IIS 6.1 Handlers for HTML, ASP, INC files

I have a legacy website in which .HTML, .ASP, and .INC files are being used. Problem is all pages have VBScript code not parsed by IIS and thus written on page as static text. I want to fix it. All .html pages include both .ASP and .INC for…
user138897
  • 11
  • 3
1
vote
1 answer

eAccelerator Causes PHP Include to Fail in Wordpress

SERVER: Linux CENTOS 6 PLESK 10.4.4 I have been installing Wordpress on many subdomains on our dedicated server. All of them run CRON jobs every 10 minutes. Long story short, the time to load first byte was getting to over 10 seconds. I did some…
Rick Scolaro
  • 161
  • 2
  • 6
1
vote
2 answers

in an SSI include, can the file being included be redirected in an .htaccess file

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 like this: But I want to move that included file from…
kidbrax
  • 113
  • 6
1
vote
2 answers

SymLinks vs. PHP Includes (performance)

Which of these 2 is easier/faster for a Linux server running Apache to process? A) A symlink pointing to a php file: file-sym.php ---> file-orig.php B) A PHP file (file-inc.php) including another PHP file (file-orig.php) like so: Contents of…
1
vote
2 answers

I enabled IIS on Windows 7 but it's not working

I followed Windows instructions, and turned on several parts of IIS. But http://localhost isn't working, and I don't see the IIS entry in Administrative Tools either. I only want to use SSI, not ASP(.net) or FTP. What should I check and why isn't it…
Mr. Boy
  • 281
  • 3
  • 9