Sponsored Content
Top Forums Web Development I need apache to serve images from localhost instead of appserver Post 302782419 by kmaq7621 on Monday 18th of March 2013 09:25:56 PM
Old 03-18-2013
as suggested by glev2005, I did a combination of your suggestions. here is what worked for me.

above all the entries, the first one should have been..
Code:
ProxyPass /images/ !


Code:
ServerAdmin admim@admin.com
ServerName atg10deva.somedomain.com/
ServerAlias atg10deva
DocumentRoot    /home/atg/www/

ProxyPass /images/ !
ProxyPass / http://atg10deva-app02:8280/
ProxyPassReverse / http://atg10deva-app02:8280/
ProxyPreserveHost On
ProxyPassReverseCookiePath / /

Alias /images/ /home/atg/www/svn/images/catalog
<Directory /home/atg/www/svn/images/>
          Options Indexes FollowSymLinks
        AllowOverride none
        Order allow,deny
        Allow from all
</Directory>



ErrorLog logs/atg10deva-app02-error_log
CustomLog logs/atg10deva-app02-access_log combined
</VirtualHost>

 

10 More Discussions You Might Find Interesting

1. IP Networking

to serve or be served??

I have two machines on my network - one OSX mac and one linux box. The mac is my main workhorse, and the linux box does occasional chores and webserving. Currently the mac shares (via NFS) files with the Liinux box. Would it be less demanding on the mac if I made it a client, and moved my files... (2 Replies)
Discussion started by: mistafeesh
2 Replies

2. Linux

apache@localhost.localdomain

Hello, I am ltrying to find the config file to modify a parameter for apache (I guess). Here, when sending mail using php web form I get a copy of all mail sent from that form, but here is a sample of what I get : From : apache@localhost.localdomain To : myemail@host.com Subject : Mail ... (2 Replies)
Discussion started by: qfwfq
2 Replies

3. UNIX for Advanced & Expert Users

localhost problem!

hello guys, this morning when I start my pc (gentoo) I get some strange errors about localhost. "Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" ... Apache the same for my aplications, I have to use the full address of my pc instead of... (1 Reply)
Discussion started by: georgeplus
1 Replies

4. UNIX for Advanced & Expert Users

AIX reomote serve

i am on win 2000 reomting into aix unix server, i need to copy a file from /tmp to my win 200 desktop, can anyone help with the command i need to use. also, if a want to view a file in this directory how do i open it? (3 Replies)
Discussion started by: hassanj
3 Replies

5. Solaris

Apache localhost-access.log

The localhost-access.log has a size 3gb. What can apache2 break log on the parts 300mb, or the other issue, make log every week and index it with prifix current date(localhost-access_date.log)? Please help. (3 Replies)
Discussion started by: sotich82
3 Replies

6. UNIX for Dummies Questions & Answers

Apache's strange loading of .gif and .jpg images

Hello! I have got next issue: my website is not showing up .gif and .jpg images, but by the direct links (ex. http://somedomain.com/img/logo.gif) i can view them without any problem. Also if any image is clicked from http://somedomain.com/img/ URL , i get error: Forbidden You don't have... (2 Replies)
Discussion started by: v1xon
2 Replies

7. Shell Programming and Scripting

how to take file from SAP server to local serve automatically

Hi, I have problem in writing the UNIX scripts,I have one SAP server and my local server .I want to take one file from SAP server to my local server weekly bases I want to write one UNIX scripts which will automatically takes that file from SAP server to my server.so I need not need to pull the... (1 Reply)
Discussion started by: Mohsin22021987
1 Replies

8. Shell Programming and Scripting

Bash Script to find/sort/move images/duplicate images from USB drive

Ultimately, I'm looking to create a script that allows me to plug in a usb drive with lots of jpegs on it & copy them over to a folder on my hard drive. So in the process of copying I am looking to hash check them, record dupes to a file, copy only 1 of the identical files (if it doesn't exsist... (1 Reply)
Discussion started by: JonaQuinn
1 Replies

9. Debian

Waiting for localhost.

I am getting the message - waiting for localhost. Here are some diagnostic steps I have tried .... root@meow:/home/ethan# cat /var/www/cgi-bin/httpd.conf ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/jkj ServerName 127.0.0.1:80 Listen xx.xx.xx.xx:80 Listen 127.0.0.1:80 ... (1 Reply)
Discussion started by: Meow613
1 Replies

10. AIX

Rebooting redundant VIOs and mirroring of PVs they serve to client LPARs

need to confirm: we have a system with two VIOs each serving a partition on a local disk to a client LPAR. That client LPAR has them both in a VG which is mirrored (exact). So each disk has a copy of the client LV that the client VG supports. This is the setup that was bequeathed to us by the... (3 Replies)
Discussion started by: maraixadm
3 Replies
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. Thie 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. (optional, string, default /etc/apache2/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 paramter 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) 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 example_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 1.0.3 07/05/2010 OCF_HEARTBEAT_APACHE(7)
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy