Is there a way to protect 1 folder on the website running on static nginx?
Example:
http://www.example.com/protected-folder/
If I load domain it should be public, if I load "protected-folder" it should ask for a
password. Is there a way to achieve this?
To help you I am running it on "Webfaction" host as a Static App.
Thank you.
Related
Completely new to Firebase. Just developed a web app with Realtime DB and hosting at xxx.web.app. It works.
Now I want to host this at xxx.mydomain.com. However, DNS must be updated only for this subdomain. I have the main domain and other subdomains hosted elsewhere. Is this possible? Could you point to relevant docs how to achieve this? Thanks.
You would just need to setup the DNS for that ``xxx` subdomain to point to your Firebase hosting:
In this example I have bith www and api pointing to Firebase because I host both there. You culd just change your ``xxx` to point to Firebase.
I've been been working on a website with a pretty complex setup:
3 backend servers coded in java with netty running the main application
A ngnix reverse-proxy doing load-balacing
A seperate nginx webserver serving static content
As proof of concept, I want to have some important files like a big super secret document on the nginx-server serving static content but only allow authenticated users to access that file and I honestly have no clue to do it...
Try
nginx auth module
For more detailed usage NGINX Authenticated User
I'm developping an application that I should give to a person only to test its functionality, and I don't want him to have the code.
I also do not want to host the application and give him a remote access.
what should I do?
You could use ioncube to encode your sources before passing them on to your client.
You can save your client the trouble of setting up a server by hosting the app yourself and using .htaccess to password protect the app and/or set up an IP restriction.
I have a site that requires 2 domains: one for dynamic and the other for static content.
In the staging environment I need it to ask for user and password as I don't want random people or bots having access to that. I have used http_auth for that.
The problem is that when you try to access, it asks for your credentials twice: once for each domain. Which is annoying.
How can I avoid that?
I am an C# ASP.NET developer. I am trying to route URL from one domain to another using Godaddy IIS Virtual dedicated server or Dedicated server for ASP.NET.
For example I have a website application for client_A in my server which is intended to be use by multiple clients with different products.
An example URL: www.myserver.com/client_A/product/bear/?productid=1 or using pretty URL www.myserver.com/A_Application/product/bear/1
I would like to setup for my client to point to client_A using his/her domain.
My Client example URL will be: www.hisserver.com/product/bear/?productid=1 or using pretty URL www.hisserver.com/product/bear/1
Thanks!
The simplest solution would be for you client to set up their domain to simply point to your server, then use Apache virtual hosts to point that domain to the directory in question. I'm not sure if godaddy allows multiple virtual hosts like that, so you could also do it with a mod_rewrite based on the incoming Host.