Questions tagged [httpd.conf]

The main configuration file of Apache HTTP Server is usually called httpd.conf

The main configuration file of Apache HTTP Server is usually called httpd.conf. The location of this file is set at compile-time but may be overridden with the -f command line flag.

2031 questions
0
votes
1 answer

Using same Directory directive for multiple virtual hosts with custom conf files

We have a SaaS product and we give websites for customers. The customers can request to have their own domain pointed to their website. At the moment we use httpd.conf file to add a VirtualHost entry pointing to the same document directory.…
Pavan Welihinda
  • 605
  • 3
  • 11
  • 26
0
votes
0 answers

When I change my httpd.conf it resets after I open usbwebserver

I don't really know how to explain what's happening but im going to try my best. Im doing a project, and I need to interact with my httpd.conf file. But when I open usbwebserver, the changes get reset. I'll explain it with images... Before I turn on…
0
votes
2 answers

SSL issue with Apache httpd reverse proxy scheme

Apologies this question is a mix of Chef and Apache-httpd, but ultimately I believe it's an Apache-httpd configuration issue. I have a Chef client/node happily hitting a Chef Server w/ SSL. Chef client/node - /etc/chef/client.rb chef_server_url …
yamori
  • 1,213
  • 4
  • 14
  • 27
0
votes
0 answers

Apache: Map the example.com/12345.html URL on filesystem to /var/www/html/1/2/3/4/5/12345.html

Apache: Map the example.com/12345.html URL on filesystem to /var/www/html/1/2/3/4/5/12345.html So every letter of the URL after the example.com is a subfolder under /var/www/html. How can I solve this? Edit: it should hande the url size dynamically,…
Roberto
  • 167
  • 1
  • 3
  • 19
0
votes
1 answer

Adding multiple domain/URL in Header set X-Frame-Options "ALLOW-FROM "

I want to add multiple domains/URL in Header set X-Frame-Options "ALLOW-FROM " (eg: Header set X-Frame-Options "ALLOW-FROM http://xyz, http://abc") in httpd.conf file . But I am unable to add 2 domains/URL as specified above. My requirement is the…
0
votes
1 answer

Enable open directory (folder browsing) .htaccess and httpd.conf

I am running WordPress on an AWS instance. I would like to open up a single directory on my server to allow folder browsing. I have tried adding an .htaccess file to folder with the line Options +Indexes I have also tried modifying the httpd.conf…
Nat
  • 565
  • 4
  • 11
0
votes
1 answer

httpd redirect with rewrite and condition not working as expected

I'm having trouble with my Apache redirects and rewrites, and I have no idea why what I've got doesn't work. This is the goal: Browser URL: http://127.0.0.1/app-gallery/all Redirect (301) to: http://127.0.0.1/apps/all Serve file from: …
jcovert
  • 550
  • 1
  • 7
  • 21
0
votes
1 answer

how to configure mpm worker module in centos 6?

I search on the internet and I found that you have to set your changes in /etc/httpd/conf/httpd.conf And I did but It still with the last configuration when I show it in the global configuration in Cpanel.
0
votes
1 answer

.htaccess not working even after mod_rewrite enabled

I have a project set up on server which use apache web server with PHP as scripting language. On my local machine (using XAMPP) .htaccess is working. I tested it with below script and it gets redirect to Google. Below script is very first line of…
Manojkumar
  • 1,351
  • 5
  • 35
  • 63
0
votes
3 answers

Apache - remove .php and .html file extensions using mod_rewrite in httpd.conf

Running Apache 2 on Ubuntu 14.04. rewrite_module is enabled (sudo apachectl -M). In /etc/apache2/apache2.conf (the Ubuntu version of httpd.conf) I have the following code block:
bumbleshoot
  • 1,082
  • 2
  • 17
  • 32
0
votes
1 answer

PHP Files Being Downloaded instead of showing on website

So I installed Php70* on my amazon Linux Server, and have apache (httpd) installed and when i go to view the php page on my browser, it downloads the php file instead of showing on the browser. I tried different browsers, clearing the cache,…
jonathan1987
  • 251
  • 1
  • 6
  • 17
0
votes
1 answer

Getting 403 Forbidden on direct access to page

I have a website that has 3 basic pages: Home, About and Contact. The website is built using AngularJS and I am using ui.router for the routing. Everything is working OK if you click on the navigation options, but when you refresh while on one of…
Serylo
  • 26
  • 5
0
votes
0 answers

Configure Apache to load sub-folders sites

I have a subfolder of my main site in 1 folder. In my public folder, I have sub-folders of sites. Ex. I have 3 sites folders in my public/ folder : one two three I want to be ale to…
code-8
  • 54,650
  • 106
  • 352
  • 604
0
votes
0 answers

Apache httpd post request limit

We have service posting gzip file to server running behind apache httpd proxy. Apache is truncating the request body to 64kb. We are not using multipart/form-data. Is there any way we can modify the apache config to increase the request body limit.
0
votes
0 answers

httpd service won't work after port change on centOS 6

I want to change Apache's port so I can use NGINx as a reverse proxy listening to port 80. I changed the Listen 0.0.0.0:80 and Listen [::]:80 lines in the /etc/httpd/conf/httpd.conf file to Listen 0.0.0.0:8090 and Listen [::]:8090 and when I run…
LuisEgan
  • 952
  • 2
  • 13
  • 28