How to set Jetty settings? - iccube

We want to secure our icCube installation, especially the WEB APP. We found that with Jetty we should be able to put the following in a web.xml:
<session-config>
<cookie-config>
<comment>__SAME_SITE_STRICT__</comment>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</session-config>
How do wet set this in icCube? I don't see this file and wouldn't know where to place it.

There is no way to directly setup Jetty native configuration. For production setup, icCube is usually placed behind the company Web server and as such does not require much configuration.
Should you need to pass those parameters to Jetty, icCube would need add them to the icCube.xml. Please contact icCube support for this kind of request.
Hope that helps.

Related

Spring MVC resources mapping tag not working on server host

Hello there I am still a beginner in Spring so go easy on me, please.
I developed web application using SpringMVC and I used in my servlet-context.xml resources mapping to store my photos in a specific folder like this:
<mvc:resources mapping="/photos/**"
location="file:///var/lib/tomcat7/photos/ "/>
And it worked fine on my local machine, however after I deployed my application on my server host and changed the path to fit in on my server the application can no longer find the path.
What should I do to solve such a problem?
The problem was that the parent directory has no permissions but the child has.
So i had to give all the directory path a permission to write on it.

Session Timeout on Magnolia CMS

Quick question, I notice that when I login to Magnolia, and didn't touch my browser for some time, It will not auto logout. Is there a configuration for having the session timeout for the Magnolia login?
Thanks! :)
Assuming you are deploying Magnolia using Tomcat, then under
conf/web.xml
You will find the session timeout set to 30 minutes by default. There you may configure it.
<session-config>
<session-timeout>30</session-timeout>
</session-config>

Deploy multiple Web Site to one Azure service

I am new to windows azure. I have requirement that I have to achieve. I have searched on the google but it was not useful.
I have to deploy multiple web sites to 1 cloud service. Is there any possibility? I will make them ssl enabled with multiple certificates in one cloud service.
So url's will be like:
https:// mysite/Home/
https:// mysite2/Home/
https:// mysite3/Home/
Actually my requirement is I should be able to deploy multiple web site and able to change the web.config after deployment. I think this we can do by enabling remote machine to the cloud service. After that we can login to remote machine and change the web.config file through iis manager. Am I correct?
Do we have any best way to achieve the requirement? I have to consider the minimum cost for this.
Thanks
This is an old post, but it shows how to run multiple websites in the same web role: http://www.wadewegner.com/2011/02/running-multiple-websites-in-a-windows-azure-web-role/
Regarding the changes in the web.config, you should not do that, because your instances may be changed, and those new instances will not have the modified file. All the configuration you are willing to change after deployment should be stored in the ServiceConfiguration.cscfg file. This way you can modify the configuration without redeploying, and the configuration is shared among all instances of the service.

custom asp.net error on a live site

I have recently migrated an ASP.net web site. I get errors, I assume it's due to database connection.
My question is, is it possible to turn on custom errors, even if I don't have the asp.net project code?
In other words,
Can I turn on custom errors on the server remotely?
if you'd like to remotely access and configure an IIS server, you'd need to configure Management Service on the server. I have found a detailed article on how to accomplish this, which you can find here
Custom errors are managed via the Web.Config. So all you need is FTP to modify the Web.config. Otherwise you can look at remotely connecting to IIS if you have that level of rights.

flex2gateway problem

I have a test server which has been working up until recently. Its running ColdFusion 8
But now when I browse from the server or externally
http://localhost/flex2gateway
I get the following error
500
No configured channel has an endpoint path '/flex2gateway/eurl.axd/f902379d5cc8514ba3feca5933aee37d'
javax.servlet.ServletException: No configured channel has an endpoint path '/flex2gateway/eurl.axd/f902379d5cc8514ba3feca5933aee37d'.
at coldfusion.filter.FlashRequestControlFilter.doFilter(FlashRequestControlFilter.java:87)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
This may or may not relate to us having recently installed and modified some IIS settings.
Everything is working ok, except for the flex2gateway. IIS & CF all talk properly. I managed to get it to work by setting ASP.NET to 2.0 and creating an empty web.config file. Setting it to ASP.NET 4 however still has the same issue, must be missing a configuration somewhere.
I discovered that the web.config files that .NET 2.0 were pointing to in the IIS configuration were missing.
Adding empty web.config files fixed this problem.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
</configuration>
If you recently installed IIS; are you sure that IIS and CF8 are set up to "Talk" to each other? There is a tool that comes with CF called the Web Server Configuration tool. You can use it to tell your IIS Instance to send CF related requests to your instance of CF8. If you are using CF Standard you can only have one instance of CF8.
Since your URL specifies 127.0.0.1 you may also have issues with virtual hosts. Do you have multiple instances of IIS? If so, how does IIS know which one to send 127.0.0.1 to?
Did you check your crossdomain.xml?

Resources