Most voted "apache" questions
Apache HTTP Server, commonly referred to as Apache, is an open-source HTTP server. Use this tag for software development issues that specifically involve Apache HTTP Server. Do not post Apache HTTP Server configuration and support issues, these are not within the scope of the site.
Learn more…631 questions
Sort by count of
-
47
votes3
answers1402
viewsHow can I simplify Urls for a website?
To access a particular area of the site, I have to indicate one to three parameters in the URL: Normal URL: # aceder a um módulo http://www.meusite.com/index.php?mod=john # aceder a um sub-módulo:…
-
30
votes4
answers4172
viewsCreating a CDN - content delivery network
Wikipedia Networked computer system via the Internet, which cooperate transparently to provide content. CDN are usually deployed in multiple locations. Benefits include reducing bandwidth costs,…
-
23
votes2
answers27855
viewsWhat do Rewritecond and Rewriterule mean in a . htaccess file?
I know they are used for many purposes, either internal or external redirection, but I never understood what each one does, whenever I need something I have to resort to ready scripts because I do…
-
22
votes1
answer19909
viewsWhat are the advantages and disadvantages between Apache and Nginx?
I see a lot of people recommending Nginx on Apache [HTTP Server], and I can well understand why the first is Event-driven it brings advantages as to scalability (i.e. low memory consumption under…
-
18
votes1
answer1026
viewsIt is possible to use if-modified-Since with "304 not modified" without PHP
Based on this solution used in this answer in SO-en i created a . htaccess and a PHP script .htaccess: RewriteEngine On RewriteCond %{HTTP:if-modified-since} . RewriteCond %{HTTP:if-none-match} .…
-
16
votes3
answers48471
viewsApache does not start the service in windows 10
I’m using XAMPP and since I switched to windows 10 it comes with this, before it didn’t activate apache, then I looked for some tutorials on the internet and found this. It solved one of the…
-
16
votes2
answers240
viewsHow do I serve a site in multiple languages in Apache?
I’m developing a website that needs to be available in 3 languages (only static content, to be served by Apache). I would like to make use of the language detection features so that the user already…
-
14
votes1
answer1251
viewsDemonstrating a slowloris attack on apache server using Python
I have the network dump (file in PCAP format captured with tcpdump) of a "chat" between the attacked server (Apache web server: 192.168.1.2) and the malicious clients: The attack was a simulation in…
-
14
votes0
answers398
viewsHow to make ajax calls through reverse proxy in 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 rescue the structure asynchronously, as well as what would be the static…
-
13
votes6
answers73010
viewsI installed XAMPP but can’t start apache, Error: Apache shutdown unexpectedly
I installed the XAMPP on Windows and I’m not getting to start apache, the error I see is: 18:32:57 [Apache] Error: Apache shutdown unexpectedly. 18:32:57 [Apache] This may be due to a blocked port,…
-
13
votes6
answers4694
viewsHow to make a stopwatch continue counting after closing the page?
I need to create a stopwatch that is started through a play, but wanted a solution, other than by SESSION, to let you count even if the customer closes the window or drops his internet, ie that is…
-
12
votes4
answers5034
viewsSet Custom Error 403 Page
I have the following excerpt in my file .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$…
-
12
votes2
answers1397
viewsDynamic subdomain system
I recently saw an app/site called Sarahah, and an interesting feature was that when registering, the username became a subdomain, something like "usuario1.site.com.br", is there any way to do this…
-
11
votes2
answers484
viewsHow to show custom page for inaccessible folders in Windows?
I used ErrorDocument to configure custom error pages, but when trying to access a folder that is only accessible with high privileges, instead of showing the custom page is displaying the default…
apache windows htaccess http-status-code-403asked 8 years, 11 months ago Guilherme Nascimento 98,651 -
10
votes3
answers632
viewsCan apache rewrite to external url?
I have an application running on 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 in this system that is in…
-
10
votes1
answer527
viewsAre all HTTP methods/verbs accepted by APACHE and NGINX?
In a talk I had recently, one of the speakers commented that the only methods that, in fact, the APACHE and the NGINX accept/support are methods/verbs GET and POST. The speaker further clarifies…
-
9
votes1
answer774
viewsRewrite URL for "root" accesses but do not block access to sub-domains
I have the following code that rewrites the entered URL to correctly identify the areas, sub-areas and content ID the visitor is trying to access: # Rewrite the url <IfModule mod_rewrite.c>…
-
9
votes2
answers3211
viewsHow to improve considerably the security of Apache?
I am setting up a web server using Apache. My question is the following: Which modules I use to improve security against malicious attacks and hits on the pages posted on my server? I know there are…
-
9
votes1
answer526
viewsAdd bar at end of URL with Htaccess
I’m having a problem with my .htaccess, because I used to use .htm at the end now that I want to bar can not change. End use .htm query string: ##### Url Dinamica ###################################…
-
9
votes2
answers742
viewsDeny/hide access to files starting with dot, like . git, . svn, . Ds_store, . yml
By default Apache denies access to files whose name begins with .ht, as an example .htaccess: <Files ~ "^\.ht"> Require all denied </Files> But I notice that many files use the prefix .,…
apache htaccess security-guard iis web.configasked 7 years, 6 months ago Guilherme Nascimento 98,651 -
8
votes2
answers8320
viewsRedirect https website to http
I currently have a site where uses an SSL certificate, as the certificate has expired and it needs to be renewed, SSL error occurs in any browser making users' visits impossible. I’d like to…
-
8
votes1
answer10339
viewsHow does Rewritebase work on . htaccess?
I’ve always used the .htaccess for url's amigáveis no php, but recently when passing to a company X server, the . htaccess that always worked didn’t work on that server.... After researching I found…
-
8
votes2
answers2526
viewsWhat is [QSA] and similar for in Rewriterule?
I have as an example the following RewriteRule ^(Home)?/?$ page/php/Home.php [NC,L] I know that the NC is Non-Case(Não diferencia maiúsculas e minusculas). L means that if a RewriteRule is true he…
-
8
votes1
answer6362
viewsWhat does L, R, NC mean in HTACCESS?
I don’t quite understand the way the flag works L. The doubt arose when I was trying to use the following script: #quando vier o "public" na url, reescreve para folder/public RewriteRule…
-
8
votes3
answers143
viewsDoubt with PHP and Apache
I formatted my machine and was advised to use Linux, and I did so. But in my localhost, the files .php are not read/recognized, only files .html. I installed, reinstalled and did everything I saw on…
-
7
votes1
answer247
viewsVirtualhost in separate file - Apache compiled
Due there is a lot of VirtualHosts I have, the file on /etc/apche247/conf/extra/httdp-vhost.conf is extensive and disorganized. I know a few ways to create the VirtualHost dynamic, but automatic…
apacheasked 10 years, 10 months ago Patrick Maciel 2,281 -
7
votes1
answer279
viewsCluster of servers on different networks
I am configuring a cluster of Tomcat8 servers. The servers are already doing load balancing (mod_jk), but I need to implement high availability (session replication). In the documentation I have,…
-
7
votes1
answer1589
viewsAutomate tasks with Laravel 5
Good morning Personal. I need to create some tasks on my system that are executed automatically (such as a Cron Job). Example: Every day the system sends an email to system customers with the value…
-
7
votes2
answers521
viewsHow to serve files with access control in Django?
When studying Django, the typical way to handle uploading files was to create a folder media on the server - establishing a MEDIA_ROOT and a MEDIA_URL in the settings.py - where any uploaded file…
-
7
votes1
answer5427
viewsHow to configure apache2 for python 3.5.2
I have been trying to study web programming with Python, but I can’t configure the server on my computer, can anyone help me? Whether it’s telling me how to set up or providing me with an already…
-
7
votes1
answer3023
viewsHow 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 software documentation is quite…
-
7
votes1
answer154
viewsHow is the process of installing the letsencrypt.org certificate on Linux on Apache servers?
I really liked the idea of using the certificate from letsencrypt.org. I found several tutorials on the internet, including that in Digital Ocean. All the steps worked correctly, but since I don’t…
-
7
votes1
answer1984
viewsHow to have two versions of php on the same Apache server?
I have an Apache/2.4.10 (Ubuntu) server running a site in php 5.5. But I’m creating a new site and it needs php 5.6. It has to have two versions of php installed on my server and use each one in…
-
7
votes3
answers3255
viewsWrong daylight saving time
I’m having a problem regarding daylight savings time... actually cell phones, street clocks, my pc also set the clock forward... Daylight saving time usually starts in October. But, not to coincide…
-
6
votes1
answer576
viewsHow to detect the error cause: 'The requested URL returned error: 503'?
I’m working on developing a web-site where I get back and forth the following error that I can see through the Firebug: The requested URL returned error: 503 Is there any way to find out the origin…
-
6
votes2
answers336
viewsIs the Apache server required in hosting services?
The Apache web server or XAMPP is the same thing as UOL Host or any other hosting provider, that is, the purpose of the two is to store websites and return requests made by the browser? For example,…
-
6
votes1
answer360
viewsWhat are the risks of saving files to the Apache server with PHP and how to avoid them?
I’m recording an HTML file with part of a page, to be used later by HTMLDocX in the generation of a file .docx (vine this question related). To record use ob_start and ob_get_clean to put the…
-
6
votes1
answer423
viewsCan denying access to a mod_rewrite folder be unsafe?
I’m thinking of creating a very limited php microframework just for own use, however I came across a situation, most frameworks uses a folder called public and on the generally production servers we…
-
6
votes2
answers675
viewsRun Python command with Selenium called by PHP through Apache
I want to run the following script in Python by a web site on the server: #!/Python34/python from selenium import webdriver driver = webdriver.Firefox()…
-
6
votes4
answers2249
viewsCreate Virtualhost on port 81
I have two apaches installed for two versions of PHP (5 and 7), on port 80 and 81 respectively. I would like to create virtualhost for apache port 81 In the host file there is this line: Host…
-
5
votes1
answer1434
viewshtaccess for web.config
I switched my website to the platform Windows Azure and their server is IIS and my old one was Apache so the routes configured in htaccess are not working, need to know how to convert this:…
-
5
votes1
answer268
viewsHow to automate a deploy in Apache?
I have some systems based in Django that often need to be deployed (Deployed) on different servers. This involves, among other things, installing all the dependencies, downloading the project files,…
-
5
votes1
answer805
viewsHow to simulate concurrent traffic/access arbitrarily in Apache?
I am using Easyphp 14.1 Devserver, which comes with`Apache 2.4.7/Mysql 5.6.15. I am willing to simulate high traffic and concurrent access to observe the performance and behavior of my site under…
-
5
votes2
answers2457
views301 redirect outside the domain with htaccess
I own a domain www.dominio1.com.br that points to the root of my site and another domain www.dominio2.com.br configured as redirector to www.dominio1.com.br/novo. However, I would like the user to…
-
5
votes3
answers11888
viewsPHP code opens in browser
I am unable to install PHP on my machine. When I run a page in the browser, it returns the code written in . php. I installed Apache 2.2.9 and PHP 5.2.1, and made all the changes based on this…
-
5
votes1
answer606
viewsHow to configure Apache Log4j to write to the Bank through Hibernate?
I am starting to use Log4j from Apache and would like to know how to configure it by XML file to record the logs in the database using Hibernate?
-
5
votes1
answer1579
viewsProblem with log4j configuration
How do I configure the properties of log4j? In my application, I am receiving the following message: log4j:WARN No appenders could be found for logger (org.docx4j.jaxb.Context). log4j:WARN Please…
-
5
votes0
answers1485
viewsI cannot access localhost on another network machine
I’m trying to access the localhost (ip: 192.168.0.11) via another network machine. Start Apache with 8080 port access (with Easyphp Devserver 16.1) and type in the browser of another network machine…
-
5
votes1
answer315
viewsWhat is the difference between SCRIPT_FILENAME and REQUEST_FILENAME?
I am studying URL friendly, and in many examples I came across these two forms of writing: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d and RewriteCond %{SCRIPT_FILENAME}…
-
5
votes1
answer221
viewsIs it possible to use Websocket connections in Apache?
With the emergence of Websockets in the browsers, I also had the interest to make some implementations in some applications. Of course with the idea comes the initial doubts. One of the questions I…