.htaccess

Custom domain feature for saas product customers

拥有回忆 提交于 2020-08-22 05:41:22
问题 I have build a saas product with angular 4 integrated with golang rest api and uploaded the build on aws ec2 instance. My project is a multi-tenant based app which loads customers dashboard on merchant-name.mystore.com subdomain but some of the customers asking for custom domain feature like they should be able to load the app on mydomain.com . I have done the the subdomain part with following code in apache2.conf file so all subdomain loads from apps folder where the angular app files

password protect a single file using .htaccess

感情迁移 提交于 2020-08-18 06:44:29
问题 I have tried to password protect a single file using .htaccess. But when accessing the file the browser just redirects to the home page of the website. I have my .htpasswd on my webroot. My .htaccess file is given below <FilesMatch "result.php"> AuthName "Member Only" AuthType Basic AuthUserFile /home/username/.htpasswd require valid-user </FilesMatch> I want to protect the file result.php. I have replaced username with my exact cpanel username. Someone please help 回答1: <FilesMatch "results