Questions tagged as 'apache'

3
answers

Can apache rewrite to external url?

I have an application running in local . At the same time I have the application that is already running in production - namely a social network. I have photos of many users on this system that are in production, but since it is not fea...
asked by 18.09.2015 / 13:46
1
answer

Rewrite URL for root access but not block access to sub-domains

I have the following code that rewrites the URL you entered to correctly identify the areas, sub-areas, and content ID that the visitor is trying to access: # Rewrite the url <IfModule mod_rewrite.c> RewriteEngine On # Redirect whe...
asked by 25.01.2014 / 19:14
2
answers

Deny / hide access to files that start with dot, such as .git, .svn, .DS_Store, .yml

By default Apache denies access to files whose name begins with .ht , such as .htaccess : <Files ~ "^\.ht"> Require all denied </Files> But I notice that many files use the prefix . , like .gitignore...
asked by 03.05.2017 / 17:54
1
answer

Add bar at end of URL with Htaccess

I'm having a problem with my .htaccess , since I previously used .htm at the end now that I want to by bar I can not change. Usage with .htm query string : ##### Url Dinamica ################################### <ifMo...
asked by 24.10.2015 / 21:38
0
answers

How to make ajax calls through the reverse proxy in an elegant way?

I have a project that validates, in JavaScript, the structure of a JSON. Here is more or less the structure I had used to do the asynchronous redemption of the structure, as well as what would be the static redemption for a default structure of...
asked by 07.08.2018 / 22:35
2
answers

Dynamic subdomain system

Recently I saw an app / site called Sarahah, and an interesting feature was that when doing the registration, the username turned into a subdomain, something like "user1.site.com", is there any way to do this mod rewrite or any apache configurat...
asked by 14.09.2017 / 19:03
3
answers

Doubt with PHP and Apache

I formatted my machine and was advised to use Linux, and so I did. But in my localhost , the .php files are not read / recognized, only the .html files. I installed, reinstalled and did everything I saw on the internet, bu...
asked by 12.05.2015 / 20:01
2
answers

What is [QSA] for and similar in RewriteRule?

I have as an example the following RewriteRule ^(Home)?/?$ page/php/Home.php [NC,L] I know that NC is Non-Case(Não diferencia maiúsculas e minusculas) . L means that if a RewriteRule is true it stops checking....
asked by 08.10.2014 / 14:31
2
answers

Redirect site https to http

I currently have a site where you use an SSL certificate, as the certificate has expired and needs to be renewed, SSL error occurs on any browser, making it impossible for users to visit. I would like to redirect traffic https:// to...
asked by 11.05.2014 / 19:28
1
answer

VirtualHost in separate file - Apache compiled

Because there is a large amount of VirtualHosts I have, the file in /etc/apche247/conf/extra/httdp-vhost.conf is extensive and disorganized. I know some ways to create VirtualHost dynamic, but in Apache's automatic instal...
asked by 20.01.2014 / 00:47