Apache SSI redhat 6
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm trying to figure out how the apache SSI module works,
Following mod_include pache doc here is my configuration:
LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory test>
#
Options Includes
</Directory>
And of course it is not working.
What I'm doing wrong ? it seems like I did the same as this : another SSI post, my test.shtml file contains:
<!--#echo var="DATE_LOCAL" -->
Using apache 2.4 on rhel6,
Edit virtual configuration:
VirtualHost configuration:
ServerRoot: "httpd"
Main DocumentRoot: "htdocs"
Main ErrorLog: "logs/error_log"
Mutex rewrite-map: using_defaults
Mutex default: dir="logs/" mechanism=default
PidFile: "logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="#-1" id=4294967295 not_used
Group: name="#-1" id=4294967295 not_used
edit : second command:
Server version: Apache/2.4.3 (Unix)
Server built: Dec 12 2012 11:40:57
Server's Module Magic Number: 20120211:6
Server loaded: APR 1.4.6, APR-UTIL 1.5.1
Compiled using: APR 1.4.6, APR-UTIL 1.5.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/httpd/Apache_2.4.3"
-D SUEXEC_BIN="/httpd/Apache_2.4.3/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
And thanks again.
rhel apache-httpd
 |Â
show 5 more comments
up vote
0
down vote
favorite
I'm trying to figure out how the apache SSI module works,
Following mod_include pache doc here is my configuration:
LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory test>
#
Options Includes
</Directory>
And of course it is not working.
What I'm doing wrong ? it seems like I did the same as this : another SSI post, my test.shtml file contains:
<!--#echo var="DATE_LOCAL" -->
Using apache 2.4 on rhel6,
Edit virtual configuration:
VirtualHost configuration:
ServerRoot: "httpd"
Main DocumentRoot: "htdocs"
Main ErrorLog: "logs/error_log"
Mutex rewrite-map: using_defaults
Mutex default: dir="logs/" mechanism=default
PidFile: "logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="#-1" id=4294967295 not_used
Group: name="#-1" id=4294967295 not_used
edit : second command:
Server version: Apache/2.4.3 (Unix)
Server built: Dec 12 2012 11:40:57
Server's Module Magic Number: 20120211:6
Server loaded: APR 1.4.6, APR-UTIL 1.5.1
Compiled using: APR 1.4.6, APR-UTIL 1.5.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/httpd/Apache_2.4.3"
-D SUEXEC_BIN="/httpd/Apache_2.4.3/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
And thanks again.
rhel apache-httpd
2
It would be good to include any relevant error messages usually found in/var/log/apache2/error.log
â RubberStamp
Dec 14 '17 at 18:25
I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
â gatemed
Dec 15 '17 at 10:06
Looks like the modules loaded fine... now let's look at other configuration items so we know where to start...httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
andhttpd -V
â RubberStamp
Dec 15 '17 at 16:01
@RubberStamp done
â gatemed
Dec 15 '17 at 16:39
From the vhosts output it looks like you are running SELinux. Is that correct?
â RubberStamp
Dec 15 '17 at 17:09
 |Â
show 5 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to figure out how the apache SSI module works,
Following mod_include pache doc here is my configuration:
LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory test>
#
Options Includes
</Directory>
And of course it is not working.
What I'm doing wrong ? it seems like I did the same as this : another SSI post, my test.shtml file contains:
<!--#echo var="DATE_LOCAL" -->
Using apache 2.4 on rhel6,
Edit virtual configuration:
VirtualHost configuration:
ServerRoot: "httpd"
Main DocumentRoot: "htdocs"
Main ErrorLog: "logs/error_log"
Mutex rewrite-map: using_defaults
Mutex default: dir="logs/" mechanism=default
PidFile: "logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="#-1" id=4294967295 not_used
Group: name="#-1" id=4294967295 not_used
edit : second command:
Server version: Apache/2.4.3 (Unix)
Server built: Dec 12 2012 11:40:57
Server's Module Magic Number: 20120211:6
Server loaded: APR 1.4.6, APR-UTIL 1.5.1
Compiled using: APR 1.4.6, APR-UTIL 1.5.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/httpd/Apache_2.4.3"
-D SUEXEC_BIN="/httpd/Apache_2.4.3/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
And thanks again.
rhel apache-httpd
I'm trying to figure out how the apache SSI module works,
Following mod_include pache doc here is my configuration:
LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory test>
#
Options Includes
</Directory>
And of course it is not working.
What I'm doing wrong ? it seems like I did the same as this : another SSI post, my test.shtml file contains:
<!--#echo var="DATE_LOCAL" -->
Using apache 2.4 on rhel6,
Edit virtual configuration:
VirtualHost configuration:
ServerRoot: "httpd"
Main DocumentRoot: "htdocs"
Main ErrorLog: "logs/error_log"
Mutex rewrite-map: using_defaults
Mutex default: dir="logs/" mechanism=default
PidFile: "logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="#-1" id=4294967295 not_used
Group: name="#-1" id=4294967295 not_used
edit : second command:
Server version: Apache/2.4.3 (Unix)
Server built: Dec 12 2012 11:40:57
Server's Module Magic Number: 20120211:6
Server loaded: APR 1.4.6, APR-UTIL 1.5.1
Compiled using: APR 1.4.6, APR-UTIL 1.5.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/httpd/Apache_2.4.3"
-D SUEXEC_BIN="/httpd/Apache_2.4.3/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
And thanks again.
rhel apache-httpd
edited Dec 15 '17 at 16:38
asked Dec 14 '17 at 17:56
gatemed
13
13
2
It would be good to include any relevant error messages usually found in/var/log/apache2/error.log
â RubberStamp
Dec 14 '17 at 18:25
I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
â gatemed
Dec 15 '17 at 10:06
Looks like the modules loaded fine... now let's look at other configuration items so we know where to start...httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
andhttpd -V
â RubberStamp
Dec 15 '17 at 16:01
@RubberStamp done
â gatemed
Dec 15 '17 at 16:39
From the vhosts output it looks like you are running SELinux. Is that correct?
â RubberStamp
Dec 15 '17 at 17:09
 |Â
show 5 more comments
2
It would be good to include any relevant error messages usually found in/var/log/apache2/error.log
â RubberStamp
Dec 14 '17 at 18:25
I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
â gatemed
Dec 15 '17 at 10:06
Looks like the modules loaded fine... now let's look at other configuration items so we know where to start...httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
andhttpd -V
â RubberStamp
Dec 15 '17 at 16:01
@RubberStamp done
â gatemed
Dec 15 '17 at 16:39
From the vhosts output it looks like you are running SELinux. Is that correct?
â RubberStamp
Dec 15 '17 at 17:09
2
2
It would be good to include any relevant error messages usually found in
/var/log/apache2/error.log
â RubberStamp
Dec 14 '17 at 18:25
It would be good to include any relevant error messages usually found in
/var/log/apache2/error.log
â RubberStamp
Dec 14 '17 at 18:25
I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
â gatemed
Dec 15 '17 at 10:06
I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
â gatemed
Dec 15 '17 at 10:06
Looks like the modules loaded fine... now let's look at other configuration items so we know where to start...
httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
and httpd -V
â RubberStamp
Dec 15 '17 at 16:01
Looks like the modules loaded fine... now let's look at other configuration items so we know where to start...
httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
and httpd -V
â RubberStamp
Dec 15 '17 at 16:01
@RubberStamp done
â gatemed
Dec 15 '17 at 16:39
@RubberStamp done
â gatemed
Dec 15 '17 at 16:39
From the vhosts output it looks like you are running SELinux. Is that correct?
â RubberStamp
Dec 15 '17 at 17:09
From the vhosts output it looks like you are running SELinux. Is that correct?
â RubberStamp
Dec 15 '17 at 17:09
 |Â
show 5 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
Assuming your include
module is loading correctly, and you've loaded the mime
module which is a dependency of include
...
You probably need to have the complete directory listed, like this:
/var/www/html/test
rather than simply test
and I usually find that +Includes
is a good idea rather than Includes
. So, the working configuration should look something like this:
LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory /var/www/html/test>
#
Options +Includes
</Directory>
Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
â gatemed
Dec 15 '17 at 15:12
@gatemed: It works on my system. You must have something else configured... please add the output ofapachectl -M
to your question... or the equivalent in RHEL6...service httpd -M
â RubberStamp
Dec 15 '17 at 15:19
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Assuming your include
module is loading correctly, and you've loaded the mime
module which is a dependency of include
...
You probably need to have the complete directory listed, like this:
/var/www/html/test
rather than simply test
and I usually find that +Includes
is a good idea rather than Includes
. So, the working configuration should look something like this:
LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory /var/www/html/test>
#
Options +Includes
</Directory>
Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
â gatemed
Dec 15 '17 at 15:12
@gatemed: It works on my system. You must have something else configured... please add the output ofapachectl -M
to your question... or the equivalent in RHEL6...service httpd -M
â RubberStamp
Dec 15 '17 at 15:19
add a comment |Â
up vote
0
down vote
Assuming your include
module is loading correctly, and you've loaded the mime
module which is a dependency of include
...
You probably need to have the complete directory listed, like this:
/var/www/html/test
rather than simply test
and I usually find that +Includes
is a good idea rather than Includes
. So, the working configuration should look something like this:
LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory /var/www/html/test>
#
Options +Includes
</Directory>
Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
â gatemed
Dec 15 '17 at 15:12
@gatemed: It works on my system. You must have something else configured... please add the output ofapachectl -M
to your question... or the equivalent in RHEL6...service httpd -M
â RubberStamp
Dec 15 '17 at 15:19
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Assuming your include
module is loading correctly, and you've loaded the mime
module which is a dependency of include
...
You probably need to have the complete directory listed, like this:
/var/www/html/test
rather than simply test
and I usually find that +Includes
is a good idea rather than Includes
. So, the working configuration should look something like this:
LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory /var/www/html/test>
#
Options +Includes
</Directory>
Assuming your include
module is loading correctly, and you've loaded the mime
module which is a dependency of include
...
You probably need to have the complete directory listed, like this:
/var/www/html/test
rather than simply test
and I usually find that +Includes
is a good idea rather than Includes
. So, the working configuration should look something like this:
LoadModule include_module /logiciel/httpd/httpd/modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<Directory /var/www/html/test>
#
Options +Includes
</Directory>
answered Dec 15 '17 at 14:59
RubberStamp
1,4551216
1,4551216
Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
â gatemed
Dec 15 '17 at 15:12
@gatemed: It works on my system. You must have something else configured... please add the output ofapachectl -M
to your question... or the equivalent in RHEL6...service httpd -M
â RubberStamp
Dec 15 '17 at 15:19
add a comment |Â
Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
â gatemed
Dec 15 '17 at 15:12
@gatemed: It works on my system. You must have something else configured... please add the output ofapachectl -M
to your question... or the equivalent in RHEL6...service httpd -M
â RubberStamp
Dec 15 '17 at 15:19
Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
â gatemed
Dec 15 '17 at 15:12
Not working, and no error related to loading mod_include, for the directory a lot of html pages are reachable and using ServerRoot and DocumentRoot var
â gatemed
Dec 15 '17 at 15:12
@gatemed: It works on my system. You must have something else configured... please add the output of
apachectl -M
to your question... or the equivalent in RHEL6... service httpd -M
â RubberStamp
Dec 15 '17 at 15:19
@gatemed: It works on my system. You must have something else configured... please add the output of
apachectl -M
to your question... or the equivalent in RHEL6... service httpd -M
â RubberStamp
Dec 15 '17 at 15:19
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f410922%2fapache-ssi-redhat-6%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
It would be good to include any relevant error messages usually found in
/var/log/apache2/error.log
â RubberStamp
Dec 14 '17 at 18:25
I have no relevant error messages except something about No JkLOgFile defined but I think it's not related ?
â gatemed
Dec 15 '17 at 10:06
Looks like the modules loaded fine... now let's look at other configuration items so we know where to start...
httpd -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
andhttpd -V
â RubberStamp
Dec 15 '17 at 16:01
@RubberStamp done
â gatemed
Dec 15 '17 at 16:39
From the vhosts output it looks like you are running SELinux. Is that correct?
â RubberStamp
Dec 15 '17 at 17:09