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

Mod_jk unmounting all requests to except of one site

I have a few sites that need to be unmounted /myUrl/.*.pdf except /myUrl/apple.pdf. I originally wrote JkUnmount /myUrl/.*.pdf worker1 JkMount /myUrl/apple.pdf worker1 Then I realized JkUnmount will actually overwrite JkMount. Then I created a…
user3369592
  • 1,367
  • 5
  • 21
  • 43
0
votes
1 answer

how to redirect different domains to their respective application ports

I have VPS and currently i am running 5 Spring boot applications on that server along with httpd. all html for those applications are inside their respective jars. All of them having different domain names. So after hitting the dns name it should…
Taufik Pirjade
  • 380
  • 6
  • 26
0
votes
0 answers

Wildfly 10 getting a NullPointerException while running in domain mode

I have configured Wildfly 10 in domain mode. All configuration of Apache HTTP Sever and mode_cluster are done. There are 2 hosts. One is master and other is slave. There are total 4 instances of Wildfly on both hosts, 2 on each hosts. While…
0
votes
1 answer

httpd configuration on server

In httpd.conf, I have NameVirtualHost *:80 ServerName *.aonesalons.com ProxyPreserveHost On # setup the proxy Order allow,deny Allow from all
systemdebt
  • 4,589
  • 10
  • 55
  • 116
0
votes
1 answer

What is causing 302 redirect in server

Something is redirecting my https traffic on all pages to http. I can not find the error in .conf file or .htaccess. Everything I have tried to force https has failed. Something is overriding my efforts and sending everything back to http. Example:…
0
votes
0 answers

Why is my Apache virtualhost showing the default page for Apache?

I have tow virtualhost but when i tried to access to them they keep showin me the default page for apache ... but when i add the directory of projet for exp myvirtualhost.com/mydiroctory it works And here is what i have in conf. part >…
Khaled Tlili
  • 29
  • 1
  • 7
0
votes
2 answers

LocalHost Wordpress sites not loading css after Apache Setup Mac

After Upgrading to High Sierra my localhost no longer worked. I followed a number of tutorials and finally got it to work but now my Wordpress sites load but do not load the CSS and Javascript files. When I check inspector it shows that it can not…
Bwizard
  • 955
  • 2
  • 15
  • 36
0
votes
0 answers

Apache not able to communicate to remote DB server

I configured EC2 instance with following environment Centos 7.4 , PHP 5.4 , HTTPD 2.4 From this EC2 instance when I heat external DB connection request through web page it turns out to be connection timeout , while If I run same PHP script through…
coder
  • 283
  • 4
  • 26
0
votes
1 answer

Deny access to js assets. Recommendable? How to do it?

I need to deny public users to see the js frameworks we use in our website. I have Apache 2.x version with php and js. First my question is, is it recommendable? I mean, wouldn't denying access to the directory will also block Apache to parse the…
Edgar Sampere
  • 263
  • 4
  • 24
0
votes
1 answer

How to add a second site in httpd.conf

I'm using the following configuration of httpd.conf in my CentOs 7 Apache server to run "site1": ServerRoot "/etc/httpd" Listen 80 Include conf.modules.d/*.conf User apache Group apache ServerAdmin root@localhost ServerName locahost:80
mlama
  • 19
  • 1
  • 5
0
votes
1 answer

httpd block access for all file types in a directory but allow access to a single file.

inside my site i have a directory /here/is/the/dir/path i want to allow access to a single file in a subdirectory example: test/testfile.xml but want to deny access to a list of other files (jsp, class, jar, xml ) i have this which i…
General Foch
  • 333
  • 1
  • 7
0
votes
1 answer

mod_headers for controlling access - won't work

Exactly as described here, I add this thing to httpd.conf: Header add Access-Control-Allow-Origin "*" As it is described in w3.org, I tried all places: , , and ... After every…
shal
  • 2,854
  • 4
  • 20
  • 31
0
votes
2 answers

AEM dispatcher restricting content pages

In AEM dipatcher we have two farms one for author and one for publish. On publish farm I wanted to restrict few of the content pages to be accessed by the direct requests. For that we have a vhost and we want only that vhost to access the content…
venkatReddi
  • 133
  • 5
  • 18
0
votes
0 answers

Remove Order from Deny Allow Directive Apache Linux

Can I remove the Order deny, allow directive because the Deny and Allow directives are in the correct order? Or do I need to keep Order no matter what. Deny from 2.8 2.9 Allow from all Order deny,allow
0
votes
3 answers

httpd VirtualHost overwrite another VirtualHost

I have a problem whereby my VirtualHost is overriding another VirtualHost on the same domain. httpd.conf IncludeOptional conf.d/*.conf example.conf DocumentRoot /var/www/html/example/ ServerName www.example.com …
Shawn Ang
  • 538
  • 7
  • 21