02-08-2016
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:
HTML Code:
1. /rcenter/custom/aws/apps/dashboard/
2. /rcenter/custom/aws/apps/analytics/
3. /rcenter/custom/aws/apps/docs/
(Basically each directory directly after /rcenter/custom/aws/apps/)
I tried to do in this way but this is not helping here.
HTML Code:
RewriteRule ^/rcenter/custom/aws/apps/(.*)/$
> https://%{SERVER_NAME}/rcenter/custom/aws/apps/$1/index.html [P]
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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)
Discussion started by: hachik
1 Replies
2. Solaris
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)
Discussion started by: rahulrathod
1 Replies
3. Web Development
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)
Discussion started by: wjones
1 Replies
4. Web Development
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)
Discussion started by: newlinuxuser
5 Replies
5. Shell Programming and Scripting
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)
Discussion started by: shehzad_m
0 Replies
6. Web Development
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)
Discussion started by: antiw2k3
4 Replies
7. Web Development
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)
Discussion started by: GosarJunk
0 Replies
8. Red Hat
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)
Discussion started by: ust3
2 Replies
9. UNIX for Advanced & Expert Users
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)
Discussion started by: bentech4u
1 Replies
LEARN ABOUT SUNOS
asadmin-create-custom-resource
asadmin-create-custom-resource(1AS) User Commands asadmin-create-custom-resource(1AS)
NAME
asadmin-create-custom-resource, create-custom-resource - registers the custom resource
SYNOPSIS
create-custom-resource --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile file-
name ] [--terse=false] [--echo=false] [--interactive=true] --restype resource_type --factoryclass classname [--enabled=true] [--description
text] [--property (name=value)[:name=value]*] jndi_name
Registers the custom resource. This command is supported in remote mode only.
OPTIONS
--user authorized domain application server administrative username.
--password password to administer the domain application server.
--host machine name where the domain application server is running.
--port port number of the domain application server listening for administration requests.
--secure if true, uses SSL/TLS to communicate with the domain application server.
--passwordfile file containing the domain application server password.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
--interactive if set to true (default), only the required password options are prompted.
--restype type of custom resource to be created.
--factoryclass class that creates the custom resource.
--enabled determines whether the resource is enabled at runtime.
--description text description of the custom resource.
--property optional attribute name/value pairs for configuring the custom resource.
OPERANDS
jndi_name JNDI name of the custom resource to be created.
Example 1: Using create-custom-resources
asadmin> create-custom-resource --user admin1 --password adminadmin1
--host pigeon --port 5001 --restype customType factoryclass "com.custom.class" --description
"this is a sample of creating a custom resource" sample_custom_resource
Command create-custom-resource executed successfully
Where sample_custom_resource is the custom resource created.
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-delete-custom-resource(1AS), asadmin-list-custom-resources(1AS)
J2EE 1.4 SDK March 2004 asadmin-create-custom-resource(1AS)