How to configure htaccess or nginx to proxy
Apache 1. mod_rewrite, mod_proxy, mod_proxy_http and mod_ssl must be enabled 2. Put 'SSLProxyEngine On' in your vhost file where your website virtual host is configured 3. Create a .htaccess file on your web root if does not exists yet. Add the following lines in htaccess: RewriteEngine On RewriteRule ^/?sitemap\.xml$ {dynomapper_sitemap_s3_url} [L,P] Change {dynomapper_sitemap_s3_url} with the xml sitemap link generated for your sitemap. This will make your website's url http://example.com/sitemap.xml serve the xml sitemap from dynomapper. If you want to proxy other links, Copy the RewriteRule line to the new line and change 'sitemap\.xml' to 'urllist\.txt' and so on., then put the corresponding dynomapper link.
Nginx Add this to your nginx server config inside your website's server block location /sitemap.xml { proxy_pass {dynomapper_sitemap_s3_url}; } Change {dynomapper_sitemap_s3_url} with the xml sitemap link generated for your sitemap. This will make your website's url http://example.com/sitemap.xml serve the xml sitemap from dynomapper. If you want to proxy other links, copy the entire location block and change /sitemap.xml to /urllist.txt and so on., then put the corresponding dynomapper link.
Comments
0 comments
Article is closed for comments.