Questions tagged as 'apache'

1
answer

How does RewriteBase work in .htaccess?

I've always used .htaccess to url's amigáveis no php , but recently when I moved to the server of a company X, the .htaccess that always worked did not work on that server .... After searching, I discovered that just putting R...
asked by 23.09.2014 / 22:07
1
answer

How to have two versions of php on the same Apache server?

I have an Apache / 2.4.10 (Ubuntu) server running a website in php 5.5. But I'm creating a new site and it needs php 5.6. Is it possible to have two versions of php installed on my server and use each one in different folders?     
asked by 05.10.2018 / 17:27
1
answer

How to set up a development environment manually

I'm trying to set up my own development environment on a machine with Windows 10 . The idea would be to install Apache + PHP + MySQL . The problem is that the documentation of the software is quite complicated for beginners like m...
asked by 11.02.2017 / 18:43
1
answer

Can denying access to a folder with mod_rewrite be insecure?

I'm thinking of creating a very limited php microframework just for own use, however I came across a situation, most frameworks use a folder called public and on the usually production servers we point this folder with DocumentRoot...
asked by 12.12.2015 / 01:26
2
answers

Is Apache server required in hosting services?

The Apache web server or XAMPP is the same as UOL Host or any other hosting provider, ie the purpose of both is to store websites and return requests made by the browser? For example, if I hire UOL Host or Terra to host my site, will not thes...
asked by 16.09.2015 / 19:10
1
answer

Cluster of servers in different networks

I'm setting up a cluster of Tomcat8 servers. The servers are already doing load balancing (mod_jk), however I need to implement high availability (session replication). In the documentation I have, Tomcat is configured to communicate via M...
asked by 16.10.2014 / 22:02
1
answer

What does L, R, NC mean in HTACCESS?

I did not understand the operation of the L flag very well. Doubt arose when I was trying to use the following script: #quando vier o "public" na url, reescreve para folder/public RewriteRule ^public/(.*)$ folder/public/$1 [NC] Rewri...
asked by 23.03.2015 / 13:30
1
answer

How to detect the cause of the error: 'The requested URL returned error: 503'?

I'm working on developing a web-site where I get back the following error that I can see through Firebug :    The requested URL returned error: 503 Is there any way to find out the source of this problem, perhaps through logs or somethin...
asked by 31.12.2013 / 17:16
1
answer

What are the risks of writing files to the Apache server with PHP and how to avoid them?

I am writing an HTML file with part of a page, to be used later by HTMLDocX in generating a .docx file % (see this question related). To write ob_start and ob_get_clean use to put the content in a variable: ob_start();...
asked by 23.10.2015 / 06:00
2
answers

How to serve files with access control in Django?

When studying Django, the typical way to handle file upload was to create a media folder on the server - setting MEDIA_ROOT and MEDIA_URL to settings.py - where every uploaded file would go. In models, a FileField...
asked by 21.05.2015 / 21:55