Questions tagged as 'apache'

2
answers

Htaccess that directs to https and also to www

I need that when the user accesses with http is directed to https and when it accesses without www redirects to access with www, follows doubts below: I'm using the following code in .htaccess: <IfModule mod_rewrite.c> RewriteEngine...
asked by 09.01.2018 / 14:26
1
answer

htaccess that hides only directories [duplicate]

I created a assets directory to put the assets of my project. So far so good, however, I have found that by typing in the URL localhost/project/assets , it shows the directory structure of that folder. In order to prevent this a...
asked by 18.10.2017 / 23:27
1
answer

Use .htaccess in a directory with files and folders with the same name

My directory is as follows: root/ ├── index.php ├── about.php ├── privacy.php └── about/ ├── brand.php └── history.php I would like that when the user types meusite.com/about , HTACCESS redirects it to the about.php fil...
asked by 23.01.2017 / 20:06
2
answers

How to display an image without an extension through the direct link in the browser?

Example - http://meusite/imagem/001 Result that I do not want, I want to see the image. ÿØÿà�JFIF��H�H��ÿÛ�C� ÿÛ�C ÿÀ�p�"�ÿÄ������������ ÿÄ�7����!1A"Q2a¡Bq‘#3R$CbScðÿÄ�����������ÿÄ�)�������!1A"Q2a#BÿÚ���?�ù¶¨/d99ñI­”s...
asked by 12.09.2016 / 16:51
1
answer

Implement digital certificate authentication (ICP) in Apache

I am trying to implement in Apache PKI authentication with digital certificates stored on the token / smart card. I'm using XAMPP 5.6.8.0-VC11 on a Windows 7 computer. Following what I discovered by searching the internet, I uncommented th...
asked by 11.06.2015 / 21:20
1
answer

Difference between HttpClientBuilder.create (). build (), HttpClients.createDefault () and DefaultHttpClient

When creating an Http connection using: HttpClientBuilder.create().build(), HttpClients.createDefault() or: DefaultHttpClient . What's the difference? private static CloseableHttpClient httpClient = HttpClientBuilder.c...
asked by 23.01.2015 / 14:16
1
answer

Problems with Tomcat 7

I have a Java web application, installed on a Windows Server. When starting tomcat, it works normally, and addresses like: http://localhost:8085 and http://localhost:8085/examples (examples that already come with tomcat) They work n...
asked by 05.01.2015 / 17:09
1
answer

MaxRequestLen error while uploading files

I'm working on PHP and doing upload of files, trying to make a upload of 60M I get the following error:    mod_fcgid: HTTP request length 16784592 (so far) exceeds MaxRequestLen   (16777216) I have my configuration file /etc/apache2...
asked by 04.06.2014 / 17:22
1
answer

Protect php files from direct access without blocking the system

In terms of routing, my site is divided into two parts: First, it has an app folder inside root, where all the files in the site are contained in the MVC system, and second, next to the app, a set folder and file that serve to intercept the URL...
asked by 21.09.2018 / 21:36
1
answer

Solutions to count downloads from a file

Suppose for this case the apache server and php language. The Problem I have a file on my server (eg: formular.pdf ) and there is a page ( formular.php ) that has a button to download this file. I need to get periodic information of th...
asked by 17.06.2016 / 16:14