Rails 3.1 app in a subdirectory with IIS - ruby-on-rails-3

Does anyone have any idea how to set this up? I'm totally stuck. If there's a config option I can't find it, and I'm assuming that the answer isn't in routes.

For anyone else asking this: don't even consider it.

Related

How can I fix vue router issue in a CloudFront environment?

I'm currently working on Vue 2 app hosted on S3 and served through CloudFront. With my routing mode set to history, things weren't working properly upon initial deployment.
However, I was able to fix that by adding redirection rules to my CF distribution:
Things were working fine, but now for whatever reason, that stopped working, I'm getting a HTTP 403 on all pages/paths I try to visit. The only difference between then and now is that my app has more pages/paths. Nothing else has changed. Here's a sample response header:
It's few and far in between, but there have been a couple of instances when I've gotten HTTP 404. The puzzling part is that the pages/paths load up fully, but not all the stylings get applied. For example, a fully bolded 12-sentence paragraph might display only 4 sentences as bolded.
Initially, I thought there was an issue with CF, but I have tried everything I could think of and talked with AWS Support, but nothing has come of that so far.
My next guess is that this may be a routing issue, but I'm not sure what to try. The routing issues I've faced in the past revolve around pages/paths not loading up at all so this is new territory for me, and I have not the slightest idea where to begin my troubleshooting efforts.
Has anyone faced a similar issue in the past? If so, how did you fix it?
So it turns out, the issue originated from the way I was setting up Tailwind.
Instead of setting things up myself, I just pointed to Tailwind's CDN and the issue was resolved.
The version of Tailwind I was using was a bit old, so it could have been a dependency issue as well.

Do I need to use UseHsts

I have a simple question; Do I need the app.UseHsts() middleware if my app is running behind an nginx server which itself is configured to handle https?
Thanks.
May be a late answer, still answering for other guys who might be looking out.
No. In fact if you look at the documentation for core Hsts (https://learn.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-5.0&tabs=visual-studio), the suggestion is to uncheck 'Configure for HTTPS' for development. Introduce UseHsts in the final stages of development.

Someone put malicious code with "~" on my website

I made my website in www.mantarrayamx.com and everything worked well, but today I got a message from google telling me that someone is misusing my website through this address:
Http://www.mantarrayamx.com/~stechies/Blessin/ba/
Does anyone know how I can solve this security problem please?
After some research, I found that the ~stechies means, home directory of a user perhaps "stechies". I found a website with the same a domain name https://www.stechies.com/ I am not sure if they are behind this or they are hacked as well.
Any help to stop this redirection is much appreciated.
I solved this problem by contacting my web hosting provider, they updated the php and mysql versions of your linux server,
In a nutshell you do not have enough privileges to do it for yourself, only your web hosting provider can solve it

XAMPP wont open simplest route with laravel, if it is not a home route

So I am having huge problems with XAMPP today ( I don't know why, never had them before ).
It gives me the "route not found exception" when I want to access any other route than the basic home "/" route.
On the other hand, if I use artisan serve and visit the exact same route in my browser, everything works as expected.
I tried googling this for the whole afternoon today, losing my mind already! Tried reinstalling XAMPP, tried making sure mod_rewrite is enabled etc. Everything is ok, it still wont work!
Can anyone please help with this issue? Here are the images
Route file
XAMPP browser
Artisan browser
Check your VirtualHost, you probably have .htaccess files disabled (AllowOverride is not set to All).
Nevermind, the problem kinda fixed itself, and I still have no idea how... I reinstalled XAMPP the second time and it worked out of the box...
Sometimes, I swear... it seems like development is just screwing with your head on purpose.

Basic Setup for JSF with Apache

I'm currently working on a JSF project at work. But, I get everything preconfigured, all I have to do is hack my code.
I've been doing this for a few weeks now and I tasted blood using JSF. So to intensify my knowledge I want to build myself a setup which I can use at home to test, work and educate myself.
So what do I need, and what do I need to configure so everything works. Preferably I'd like to use Apache and Tomcat, but that's about as far as my knowledge goes. I do know, that I should have/need a framework like Spring, but what exactly is that for?
I'd appreciate the help
Thx!