Need help on Apache configuration for redirecting URLS
I am extremely new to Apache httpd configuration. Can you please help here below is my requirement.
If the URL match existing resource - return resource.
If the URL doesn't match existing resource it should return index.html from the app root directory.
Apps root directories are:
HI
i was trying to configure logrotate for my apache server and it's not working properly.
here is my lodrotate configuration
/var/log/httpd/*log {
daily
missingok
notifempty
sharedscripts
compress
delaycompress
postrotate
/sbin/service httpd... (1 Reply)
I am running apache 2 on centos 7 which is running ipv4 , now I would like to enable it to support ipv6 , would advise what I need to change to Adding IPv6 support to the server ? or nothing need to do ?
the existing vhosts is as below .
<VirtualHost *:80>
ServerAdmin xxx.com.hk
"
"... (2 Replies)
I am a total newbie to Apache. I need to do this only for this weekend during an upgrade from old system to new system
We have different URLs http://domain.name/xxx (xxx varies to any length and words - it can be /home, /login, /home/daily, /daily/report, etc).
How do i redirect all those to... (0 Replies)
Hi everyone.
Im really new here, so please have patience with me if i act out of order in any way. I do have some unix experience, but i would not call it extensive.
The problem i am about to describe probably have a easy solution, but i have been unable to find it while speaking to Mr.Google... (4 Replies)
i need help on redirecting apache conf file
i want redirect everything to www.example.com/home
example if i type a url
www.example.com/home/text1
i need that redirected to www.example.com/home (0 Replies)
I am new in Linux configure Apache. I got few questions to ask. I am will grateful for the help. Thanks.
1) In the Apache Configuration File, where is actually the base for the web tree?
2) I wanted to create a directory (called java) inside the base of the web tree. How am I going to do... (5 Replies)
Dear All
I need to redirect requests coming in on a second domain, to a page within an existing web site.
So basicly
http:\\webtest should be redirected to http:\\ustnd5\ukt\newsroom\newsroom.jsp
I have the line
ProxyPassReverse /ukt/newsroom/newsroom.jsp http://webtest:10080/
... (1 Reply)
I seem to have an issue with Apache configurationon our Sun solaris Server.
Since there are 2 my_app instances running in parallel, the perl modules in my_app_perl_libs are getting shared
between them, even though they are in different directories (/u01/my_app and /u01/my_app8).
This is because... (1 Reply)
Hi. I run openbsd and apache 1.3.29
PHP/4.3.9 mod_perl/1.29 DAV/1.0.3 mod_ssl/2.8.16 OpenSSL/0.9.7c
anyway,problem is i have in httpd.conf allow override all in /dir1
and 2 directories
/dir1/.htaccess is
AuthType Basic
AuthName "Password Required"
AuthUserFile /passwords/password.file... (1 Reply)
OCF_HEARTBEAT_APACHE(7) OCF resource agents OCF_HEARTBEAT_APACHE(7)NAME
ocf_heartbeat_apache - Manages an Apache Web server instance
SYNOPSIS
apache [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
This is the resource agent for the Apache Web server. This resource agent operates both version 1.x and version 2.x Apache servers.
The start operation ends with a loop in which monitor is repeatedly called to make sure that the server started and that it is operational.
Hence, if the monitor operation does not succeed within the start operation timeout, the apache resource will end with an error status.
The monitor operation by default loads the server status page which depends on the mod_status module and the corresponding configuration
file (usually /etc/apache2/mod_status.conf). Make sure that the server status page works and that the access is allowed *only* from
localhost (address 127.0.0.1). See the statusurl and testregex attributes for more details.
See also http://httpd.apache.org/
SUPPORTED PARAMETERS
configfile
The full pathname of the Apache configuration file. This file is parsed to provide defaults for various other resource agent
parameters.
(unique, optional, string, default "/etc/httpd/conf/httpd.conf")
httpd
The full pathname of the httpd binary (optional).
(optional, string, default "/usr/sbin/httpd")
port
A port number that we can probe for status information using the statusurl. This will default to the port number found in the
configuration file, or 80, if none can be found in the configuration file.
(optional, integer, no default)
statusurl
The URL to monitor (the apache server status page by default). If left unspecified, it will be inferred from the apache configuration
file.
If you set this, make sure that it succeeds *only* from the localhost (127.0.0.1). Otherwise, it may happen that the cluster complains
about the resource being active on multiple nodes.
(optional, string, no default)
testregex
Regular expression to match in the output of statusurl. Case insensitive.
(optional, string, default "exists, but impossible to show in a human readable format (try grep testregex)")
client
Client to use to query to Apache. If not specified, the RA will try to find one on the system. Currently, wget and curl are supported.
For example, you can set this parameter to "curl" if you prefer that to wget.
(optional, string, no default)
testurl
URL to test. If it does not start with "http", then it's considered to be relative to the Listen address.
(optional, string, no default)
testregex10
Regular expression to match in the output of testurl. Case insensitive.
(optional, string, no default)
testconffile
A file which contains test configuration. Could be useful if you have to check more than one web application or in case sensitive info
should be passed as arguments (passwords). Furthermore, using a config file is the only way to specify certain parameters.
Please see README.webapps for examples and file description.
(optional, string, no default)
testname
Name of the test within the test configuration file.
(optional, string, no default)
options
Extra options to apply when starting apache. See man httpd(8).
(optional, string, no default)
envfiles
Files (one or more) which contain extra environment variables. If you want to prevent script from reading the default file, set this
parameter to empty string.
(optional, string, default "/etc/apache2/envvars")
use_ipv6
We will try to detect if the URL (for monitor) is IPv6, but if that doesn't work set this to true to enforce IPv6.
(optional, boolean, default false)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 40s.
stop
Stops the resource. Suggested minimum timeout: 60s.
status
Performs a status check. Suggested minimum timeout: 30s.
monitor
Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a apache resource using the crm(8) shell:
primitive p_apache ocf:heartbeat:apache
op monitor depth="0" timeout="20s" interval="10"
SEE ALSO
http://www.linux-ha.org/wiki/apache_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_APACHE(7)