Sitefnity Mailing List Export Generates Wrong URL - sitefinity

Configuration of web servers:
My Sitfinity CMS website is deployed on three servers in which two are on load balancer and serve only frontend website, 3rd server in only serve CMS backend and only accessible within organization domain and not part of the loadbalancer.
Backend URL is cms.example.com
Frontend URL is web.example.com
When I go to Marketing --> Mailing lists then click on Action --> Export, select file format and click on "Export", it does not export any file.
When I look at browser console it shows me wrong (web URL) URL for export file.
http:///web.example.com/Telerik.Sitefinity.ExportSubscribersHttpHandler.ashx?provName=&isCSV=true&ids=c46d5106-e7fa-490b-93f5-0c7106ad8a61&exportExSub=true&allSub=false
In order to download file, I need to generate the below URL
http:///cms.example.com/Telerik.Sitefinity.ExportSubscribersHttpHandler.ashx?provName=&isCSV=true&ids=c46d5106-e7fa-490b-93f5-0c7106ad8a61&exportExSub=true&allSub=false
How can I fix this issue for Mailing List Export file?

Related

Steps to redirect Application URL to Custom URL

i have IHS 7 installed on an AIX system and its pointing to Application Server . now my requirement is if Application is not accessible or if we are working on the Application it self then whoever access the URL, it redirects to a custom page on the webserver that Application is under construction .
for example url is https://my.Application.com:8089/application if anyone hits this URL then this URL is redirected to custom URL on same webserver https://my.webserver
i have configured a proxy on IHS httpd.conf but it is not working
The good practice in such case is to create two config files and one maintenance page. When your app server do not work you should restart http server with config file which point to the maintenance page.

Need to rewrite url in dynamic web project jsp

I have a dynamic web project with maven, using technology as jquery, jsp pages and servlets. I have an example url in my application below:
www.mydomain.com/JohnSmith.html
(Above name "JohnSmith" is parametric, anybody can save any HTML with new name, it can be "SueBrown", "DemiMoore" etc. )
When user click to photos link in JohnSmith.html, I want to make URL like below:
www.mydomain.com/JohnSmith/photos/
And when user click to any photo in listed photos page, I want to make URL like this:
www.mydomain.com/JohnSmith/photos/545425 (--> id of image)
Which structure should I use? My project is running on Linux, Apache tomcat 7, and Apache web server 2.4. I looked into "Rewrite Cond" and "Rewrite Rule" on web server configuration, but it is very complex, I couldn't succeed to apply this scenario.

Access js and css files from API gateway and lambda

I have an API Gateway in AWS that calls a a lambda function that returns some html. That html is then properly rendered on the screen but without any styles or js files included. How do I get those to the client as well? Is there a better method than creating /js and /css GET endpoints on the API Gateway to go get those files? I was hoping I could just store them in S3 and they'd get autoloaded from there.
Store them on S3, and enable S3 static website hosting. Then include the correct URL to those assets in the HTML.
I put in the exact address of each js/css file I wanted to include in my html. You need to use https address, not the http address of the bucket. Each file has it's own https address which can be found by following Mark B's instructions above. Notably, going through the AWS admin console, navigate to the file in the S3 bucket, click the "Properties" button in the upper right, copy the "Link" field, and post that into the html file (which was also hosted in S3 in my case). Html looks like this:
<link href="https://s3-us-west-2.amazonaws.com/my-bucket-name/css/bootstrap.min.css" rel="stylesheet">
I don't have static website hosting enabled on the bucket. I don't have any CORS permissions allowing reading from a certain host.

How can you rewrite an internal link access from external hostname?

What if I have some internal links on my xampp web server that need to get accessed by external (requests from the internet)?
Lets say http://mylocalsite.local/login/ is a link on the site.
if I click on this link from http://externalwebsiteaddress.com, which should redirect to my webserver. Can the internal link (mylocalsite) be rewritten to http://externalwebsiteaddress.com/login ? Because currently external requests give a "Cannot access this page error" because its internal.
I don't want the internal link to redirect to the external link when accessed from within the network.
Basically if the links are internal , then find a way to service the request from external website successfully, without having to physically change the link on the server.
in other words
If the user is accessing from an external internet link, then find a way to redirect to proper folder using external link so it can be resolved properly.
EX: All links start with http://externalwebsiteaddress/wherever
If user is accessing from internal (inside the network) , then use the local links.
EX: All links start with http://internaladdress/wherever
Would this be a mod_rewrite? I am confusing myself way to much.

How to disable css access outside from hosting domain?

I've a web app served by Apache, html pages sent to browsers include several CSS files that are hosted at same web app domain.
I've noticed some websites use my css (and images) including in their pages but this increase my (limited) Apache server traffic.
I want to allow css access only for pages hosted at specific domain(s).
How can I configure the web server (Apache) to refuse serving css outside specific domain(s)?
Example (valid access)
myhost.com/index.html contains inclusion for styles/mystyles.css
Example (invalid access)
foreignhost.com/index.html contains inclusion to myhost.com/styles/mystyles.css
Hotlinking can be prevented with .htaccess files, but it might be more fun to change the URL of your CSS files and put up a file at the old URL that makes their entire site hot pink.