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
-
3
votes1
answer3030
viewsImplement digital certificate (ICP) authentication in Apache
I’m trying to implement Apache authentication through PKI with digital certificates stored in token/smart card. I am using XAMPP 5.6.8.0-VC11 on a Windows 7 computer. Following what I found by…
-
3
votes1
answer5437
viewsDifference between Multi and Single Thread
In terms of processes, what is the difference between the multi-thread pro single-thread? How the two forms will work with a requisition?
-
3
votes2
answers730
viewsWhat better option to protect directories and files in a root folder?
On a web server, I have a folder inside the root folder (public_html) that must be protected. It contains system files, settings, logs, classes and etc... In general, what is the best option to…
-
3
votes2
answers143
viewsconfigure virtual host in apache2
I am having difficulty configuring my virtual host in Apache2 with Debian. I created the folder: mkdir /var/www/site/public_html inside that directory I created a file index.html. After that I set…
-
3
votes2
answers519
viewsProblem connecting port 80 Apache
I’m trying to use BitNami Stack MAPP 5.5.30-0 ( For Apache Web Server, Postgresql) When I try to configure Apache Web Server I get this error : "Cannot bind to port 80. It is probably Taken by…
-
3
votes0
answers670
viewsHow to simulate https at http://localhost?
How can I simulate https in Xampp so that it returns me the url showing if everything is ok or there are security holes in the scripts used?
-
3
votes1
answer271
viewsLicensing of a Software
I am developing a system that uses Apache server, Laravel, Mysql etc. Well, I would like to license this system, and my question is whether I can do this and if so, what kind of license should I…
-
3
votes2
answers261
viewsHow to run Wamp Server over network?
I installed Wamp Server on the network, but it does not work. It turns red, I swipe the mouse and it says "Server online". I already modified the httpd.conf file to release the permission for all…
-
3
votes1
answer551
viewsBlock access to a system URL or folder path
Hi, I’m looking to block access to the administrative part of my site and release to only a few ips. I can do this using the .htacess well quiet but the problem is that I have the module…
-
3
votes1
answer186
viewsWhat is the gain of "unifying" the resources . css and . js of a site?
Scenario: A website X has 5 . css files and 5 . js files all with 5KB, a website Y has the same HTML that the site X but its resources . css and . js are linked together (.js with . js and . css…
-
3
votes1
answer1865
viewsRedirecting a domain to a subfolder without changing the URL, but not allowing otherwise?
I have the following problem, I have an application with the following structure: app - Folder to store project files as controllers and models. public_html - Stores public documents on the web,…
-
3
votes0
answers100
viewsProblem with the redirect
I am creating an application in Node.js using express admin to manage data. It ran great as locally, but when I put in apache server the redirect to login gives error. In case, when I went to…
-
3
votes1
answer875
viewsRewrite module in . htaccess for subfolders
I have an application in AngularJs with html5 enabled, which makes me need to use the module rewrite apache so there is a correct URL conversion. I have no problem using this when accessing the…
-
3
votes1
answer246
viewsSolutions 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 (Ex: formulario.pdf) and there is a page (php form.) which has a button to download this file. I need…
-
3
votes0
answers1356
viewsphp folder permission
I have an open source system called NOVOSGA running on my local machine, but the hosting server doesn’t work, when I try to run it gives me an error of the system itself: Diretório temporário /tmp…
-
3
votes1
answer672
viewsGenerate Apache logs in different files
I have a VM running a single PHP project, only so far with external access released. Last week I needed to create a folder inside the www with the signatures of the employees' emails, and the log…
-
3
votes3
answers792
viewsHow do Apache (wamp) stop killing the session by itself?
I developed an application with laravel and left her spinning in the wamp, but after a while it ends up killing the user session, I wonder if there is any setting for it to stop doing this? Thank…
-
3
votes2
answers865
viewsHow to view image without an extension via direct link in the browser?
Example - http://meusite/imagem/001 Result I do not want, I want to view the image. ÿØÿà�JFIF��H�H��ÿÛ�C� ÿÛ�C ÿÀ�p�"�ÿÄ������������…
-
3
votes1
answer420
viewsRemove subdirectories with htaccess
I have an example.com website that had a subdirectory called /lojanova. This entire site has been migrated to the root of the main directory: "/". For google there are still some images and files…
-
3
votes1
answer77
viewsHow to configure Fuelphp in Ubuntu 16?
I need to "clone" a Fuelphp application, which runs on Lamp (linux) on the company server. All went well and smooth in the first attempt, which was made in the customer’s local machine. Already this…
-
3
votes2
answers972
viewsPoint to a folder before DOCUMENT ROOT?
Below follows the folder structure: /home/web/site/public_html If I give an echo $_SERVER['DOCUMENT_ROOT'] I’ll get the path to public_html, but I’d like to make some files inaccessible directly by…
-
3
votes1
answer2190
viewsForce www and https in url - HTACCESS
Below is the code to force www and https at the url of the page using htaccess, who need it, for me it worked right. Hugs RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST}…
-
3
votes1
answer283
viewsHow to redirect to a folder and HTTPS simultaneously?
I have a website http://meusite.pt which is a CNAME of http://minhamaquina.amazon.com, where the hosted site is. Only that I needed it to be redirected to the folder meusite from my Amazon machine,…
-
3
votes1
answer701
viewsUse . htaccess in a directory with file and folders of the same name
My directory is as follows: root/ ├── index.php ├── about.php ├── privacy.php └── about/ ├── brand.php └── history.php I wish that when the user typed meusite.com/about, HTACCESS redirects you to…
-
3
votes1
answer300
viewsApache logs: checking a slowloris attack
I’m simulating an attack slowloris to a Debian server running Apache. The attacking machines are Debian as well. In order to make sure that the attack slowloris was effective, would like to access…
-
3
votes2
answers154
viewsHow does the server know that the index is the main page?
For example, I have several . HTML and . PHP files in the public_html folder on my server (Internal), but when opening the path in the browser (open the path…
-
3
votes1
answer1627
viewsWhat is the difference between the apache service Reload and Restart?
What is the difference of both and which cases to use any of them? service apache2 restart and service apache2 reload
-
3
votes2
answers1100
viewsUser limit in a PHP application
Hello, I developed a php system controlled by Sessions.. I found that it is possible to limit the maximum number of users online on the system via apache(httpd.conf). Is there any function (ajax,…
-
3
votes0
answers188
viewsPHP (permission level on the server)
I created a php application that uploads files (PDF, images and JSON) that works correctly on my PHP 5.2.17 server, but on the client server, the application only works if I change the site folder…
-
3
votes1
answer2585
viewsProtect php files from direct access without locking to the system
In terms of routing, my site is divided into two parts: First, it has an app folder inside root, where it is contained all the files of the site in MVC system, and second, next to the app, a set of…
-
2
votes3
answers8451
viewsProblem with uploading large files in PHP
I’ve already set my site’s php settings to upload limit size (post_max_size and upload_max_filesize). I put 1 Giga as a precaution for testing. But when I try to upload a 30 megas file, the status…
-
2
votes2
answers1137
viewsConfiguring Virtual Hosts in Apache
I’m trying to create a virtualhost here in the company, but it doesn’t work. The funny thing is that I created in the same way as other virtualhosts that are working normally. Below is an example:…
-
2
votes1
answer4585
viewsApache permission on Windows 7
I installed Apache (version 2.2.25) on Windows 7 and changed the default folder for DocumentRoot for c:\tmp. I made the following change to the file httpd.conf: #DocumentRoot "C:/Program Files…
-
2
votes2
answers793
viewsApache directing two Urls to the same folder
I have 2 sf2 projects in different folders. When I access them through Urls localhost/projeto01 and localhost/projeto02m go to the same location (project01 even when access /project02). I created…
-
2
votes2
answers601
viewsProblem with friendly url
I am facing problems with friendly url on my website. My requests loop if I do this: RewriteEngine On Options +FollowSymLinks RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ sessao.php If I…
-
2
votes2
answers522
viewsHow to disable Godaddy server cache?
I’m having a problem with server caching on Godaddy. I don’t know if this is with all Godaddy clients with a shared server or just my account. I happen to make changes to a file and upload, but the…
-
2
votes1
answer1714
viewsWordpress with friendly URL - Apache error - How to resolve?
I’m having problems with Wordpress with friendly URL. It just doesn’t work even using the file . htaccess suggested by Wordpress support site. cat .htaccess # BEGIN WordPress <IfModule…
-
2
votes1
answer732
viewsInstallation Phalcon PHP
Hello, I’m trying to install the Phalcon PHP Framework in XAMPP on Windows as per this link tutorial: http://docs.phalconphp.com/en/latest/reference/install.html#id2, but following the steps of the…
-
2
votes1
answer215
views.htaccess - rewriting non-user-friendly URL
When I make the requisition : http://localhost/project/mycontroller/ the URL rewrites to http://localhost/project/mycontroller/?l=mycontroller That is, beyond the /mycontroller o . htaccess (I…
-
2
votes1
answer48
viewsTime redirection
I have an application that I need to change domain app.com.br need to change to app2.com.br however while I do not change the dns I need a temporary redirect I need that when someone enters any path…
-
2
votes3
answers3361
viewsConfiguration of . htaccess to access several PHP files within the same folder
I’ve been beating myself since yesterday with my configuration .htaccess, my original URL is like this (2 is the page number): www.example.com/categoria/produtos/2 Categoria is a briefcase inside of…
-
2
votes2
answers225
viewsShell_exec(): How to keep process active when restarting apache?
The processes run by php shell_exec() end up restarting apache. It is possible to keep processes active without interruptions when restarting apache? Below the code I’m using: $Command = "ksh -c '(…
-
2
votes1
answer594
viewsCall to Undefined Function pg_pconnect()
I need to create a connection to a database (already existing) in Postgresql (up and running), using this code (which also existed). Access file_bd.php <?php function conecta() { $ip =…
-
2
votes1
answer703
viewshttps redirect without www with apache and startssl
It’s a little complicated thing... But the problem is simple. I use the free certification from Startssl and as it is free I can create keys only for my domain and a subdomain. Turns out I replaced…
-
2
votes1
answer890
viewsRedirect .com.br domain to . com
I have two domains: the main one is . com and the secondary one is .com.br I need to make sure that every time you go www.dominio.com.br it redirects to www.dominio.com, even when it has a…
-
2
votes1
answer325
viewsphp script without permission in root document
I would like to create a log with information from visitors to the page, but the script is not writable. How to proceed? PHP Warning: fopen(log.txt): failed to open stream: Permiss xc3 xa3o denied…
-
2
votes1
answer888
viewsManual update of PHP Version
I developed scripts in PHP compatible with the minimum version 5.3.7, and for my misfortune, the version that is installed on the Apache server is 5.2.17. How can I manually upload the new PHP…
-
2
votes0
answers426
viewsException when deleting directory using Fileutils.deleteDirectory
The directory has 6 files inside it. The exception is java.io.Ioexception: Unable to delete file: tmp umDosArchives. Manually, I can delete all the files and the directory. I used the canWrite…
-
2
votes1
answer1993
views500 Internal server error in PHP files
Every time I run a PHP file on the server it returns (in the header) an error 500. This only happens with PHP files... Commands like echo and phpinfo() only strings work (tested with echo 'teste';).…
-
2
votes0
answers221
viewsHow to configure Apache via command line?
I wonder if it is possible to configure Apache using command line (Terminal). So far, the most I can do is to run the command apachectl -S which gives me the settings, but this value returned is not…