[users@httpd] Proxy´ing a remote site
Hi Guys I would like to make a remote website appear as existing on a local virtual host, but I'm having trouble with understandig how to do it. Virtual hosting i working just fine, but getting the remote site into the local space is just killing me. What I need to do is to have www.remote.com til appear as www.local.com. The remote site contains some fully qualified links and references to images like this: a href=http://www.remote.com/somestuf/page2.htm; title=Page 2img src=http://www.remote.com/images/page2.gif;/a .. that would need to be rewritten. How can I get this remote site into my local Virtual host, so the remtote site appears at running entirely on the local server? I've tried messing around with rewrite rules, proxypass directive ... but I just can't get i right. Could someone please help me out here? Regards Søren Schimkat - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Proxy´ing a remote site
On Tue, Aug 16, 2011 at 12:53 PM, Søren Schimkat schim...@schimkat.dk wrote: Hi Guys I would like to make a remote website appear as existing on a local virtual host, but I'm having trouble with understandig how to do it. Virtual hosting i working just fine, but getting the remote site into the local space is just killing me. What I need to do is to have www.remote.com til appear as www.local.com. The remote site contains some fully qualified links and references to images like this: a href=http://www.remote.com/somestuf/page2.htm; title=Page 2img src=http://www.remote.com/images/page2.gif;/a .. that would need to be rewritten. How can I get this remote site into my local Virtual host, so the remtote site appears at running entirely on the local server? I've tried messing around with rewrite rules, proxypass directive ... but I just can't get i right. Could someone please help me out here? I have once gone through this painful exercise and I have a very complex setup. You can read a brief working tutorial which I have written http://mightydreams.blogspot.com/2011/03/running-multiple-applications-in-lan.html it might help. If you can post 1) the vhost configurations, 2) give link to your site 3) Give request response headers (only the related ones) as what happens when you request what (with your config) that may help any one on list to answer the question. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Proxy´ing a remote site
On 2011-08-16 09:23, Søren Schimkat wrote: Hi Guys I would like to make a remote website appear as existing on a local virtual host, but I'm having trouble with understandig how to do it. Virtual hosting i working just fine, but getting the remote site into the local space is just killing me. What I need to do is to have www.remote.com til appear as www.local.com. mod_proxy_http will do this just fine. Configure Proxypass and ProxypassReverse as documented. The remote site contains some fully qualified links and references to images like this: a href=http://www.remote.com/somestuf/page2.htm; title=Page 2img src=http://www.remote.com/images/page2.gif;/a .. that would need to be rewritten. That is not possible with mod_proxy. There is a third-party module that does just that however: mod_proxy_html. You can find it here: http://apache.webthing.com/mod_proxy_html/ -- J. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Protecting confidential information on business web servers
We are developing a data loss prevention module to protect web applications on Apache web servers from exposing protected information. I am looking to find people to beta test this module on web servers with applications that provide customer access to business information. Please respond privately for more details. Thanks, Guy Helmer Palisade Systems, Inc. This message has been scanned by ComplianceSafe, powered by Palisade's PacketSure. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Restricting files and directory listings served by DAV
Hi I¹m attempting to create a custom apache dav config to restrict serving of files and directory listings under /www/live to just *.pdf files. I¹ve found with this config the dav clients are denied access (403) to list the directory - Dav On Directory /www/live deny from all filesmatch ^www$|\.(pdf)$ allow from all /filesmatch /Directory Is it possible to allow directory listings of just PDF files? What would the apache config look like for this? I should point out I¹ve experimented with IndexIgnore and while it works OK for some clients (firefox) that do GET method it does not restrict the listings for dav clients that do PROPFIND (eg iPhone WedDAV Navigator) We need the restrictiveness of filesmatch, but not so restrictive as to disallow the dav clients from building a directory index Thanks for any tips, will summarize Fletcher.
[users@httpd] server-status 404
Hi List, I have been jockeying my httpd.conf and googled around which brings me here. I added the server-status directive to main my httpd.conf according to http://httpd.apache.org/docs/2.2/mod/mod_status.html. I noticed it was 404-ing when I tried to access server-status, as I understand the httpd.conf is read sequentially (I am sure someone will correct me if I am wrong on this) so I tried re-ordering directives in various configurations to no avail. I am using Name based virtual hosts so I tried adding a second vhost for localhost at the suggestion of this post to no avail: http://systembash.com/content/apache-mod_status-404/ Here are snippets in terms of what is placed where in httpd.conf. You can kind of fill in the blanks if you think of a standard httpd.conf for version 2.2 of httpd. Listen someserver.com:80 Listen 127.0.0.1:80 LoadModule status_module modules/mod_status.so NameVirtualHost someserver.com:80 NameVirtualHost 127.0.0.1:80 NameVirtualHost 173.45.238.105:80 NameVirtualHost 127.0.0.1:80 VirtualHost someserver.com:80 /VirtualHost VirtualHost 127.0.0.1:80 ... /VirtualHost Location /server-status SetHandler server-status Order Deny,Allow Allow from all /Location Directory / Options FollowSymLinks AllowOverride FileInfo Order deny,allow Deny from all /Directory I figure I'm probably missing something rather elementary here, probably with the way I have Name based virtual hosts set up, but alas, it is escaping me. Hoping some extra eyes will shine some light on this puzzle. Thanks in advance, @msacks --Debug: Server version: Apache/2.2.x (Unix) Server built: Feb 9 2009 00:42:05 Server's Module Magic Number: x:x Server loaded: APR 1.3.x, APR-Util 1.3.x Compiled using: APR 1.3.x, APR-Util 1.3.x Architecture: 64-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -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=128 -D HTTPD_ROOT=/usr/local/apache2 -D SUEXEC_BIN=/usr/local/apache2/bin/suexec -D DEFAULT_PIDLOG=logs/httpd.pid -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_LOCKFILE=logs/accept.lock -D DEFAULT_ERRORLOG=logs/error_log -D AP_TYPES_CONFIG_FILE=conf/mime.types -D SERVER_CONFIG_FILE=conf/httpd.conf VirtualHost configuration: someserver.com:80 is a NameVirtualHost default server www.somerserver.com (/usr/local/apache2/conf/httpd.conf:147) port 80 namevhost www.somerserver.com (/usr/local/apache2/conf/httpd.conf:147) someserver.com:443 www.somerserver.com (/usr/local/apache2/conf/ssl.conf:76) somerserver.com:443 www.somerserver.com (/usr/local/apache2/conf/ssl.conf:76) 127.0.0.1:80 is a NameVirtualHost default server www.someserver.com (/usr/local/apache2/conf/httpd.conf:154) port 80 namevhost www.someserver.com (/usr/local/apache2/conf/httpd.conf:154) Loaded Modules: core_module (static) mpm_prefork_module (static) http_module (static) so_module (static) authn_file_module (shared) authn_dbm_module (shared) authn_anon_module (shared) authn_dbd_module (shared) authn_default_module (shared) authz_host_module (shared) authz_groupfile_module (shared) authz_user_module (shared) authz_dbm_module (shared) authz_owner_module (shared) authz_default_module (shared) auth_basic_module (shared) auth_digest_module (shared) dbd_module (shared) dumpio_module (shared) ext_filter_module (shared) include_module (shared) filter_module (shared) substitute_module (shared) deflate_module (shared) log_config_module (shared) env_module (shared) expires_module (shared) headers_module (shared) ident_module (shared) usertrack_module (shared) setenvif_module (shared) ssl_module (shared) mime_module (shared) status_module (shared) autoindex_module (shared) asis_module (shared) negotiation_module (shared) dir_module (shared) imagemap_module (shared) actions_module (shared) userdir_module (shared) alias_module (shared) rewrite_module (shared) php5_module (shared) unique_id_module (shared) Syntax OK - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org