Questions tagged [apache-config]

Apache configuration is text based configuration file (or set of files) which are used to configure apache httpd web server

264 questions
0
votes
2 answers

Symfony2: Use different port for Rest API

I currently starting a (Symfony2) project where I have to use a different port for HTTP-Communication of the REST-API (JSON/XML) then the normal HTML-Content. Is this possible? And what is the best practice? Can this be solved by (Symfony-) routing?…
Atreides78
  • 577
  • 1
  • 7
  • 22
0
votes
1 answer

Different Apache Configurations based on Requestors IP

I'm wondering if there is a way to use some kind of if-else construct within an apache httpd 2.2 config. The idea behind this is this: I want to use www.domain.com for two different liferay installations (for a limited time). I want some specific…
0
votes
1 answer

Same site, different django projects, served through different url

So I am on: Ubuntu 14.04.3 LTS Apache/2.4.7 Latest mod-wsgi-3.4 built from source Python 3.4 virtualenv Django 1.86 I have 2 django projects at different locations: /home/admin/myproject/ /home/boba/bobaproject/ So the directories are under…
safe_malloc
  • 824
  • 2
  • 12
  • 29
0
votes
1 answer

LocationMatch negative expression

I want password protection for the site just webservice URL stay allow all. This expression work perfectly in apache, just need turn opposite. AuthType Basic AuthName "Restricted Files" …
Cipo
  • 161
  • 2
  • 14
0
votes
1 answer

directive ignored in Apache httpd.conf

So I tried using this in the httpd conf at the bottom of the config file. My goal is to have this rule whitelist the wordpress admin to certain ip addresses. We have a quite a few installs on the server and want to protect this. However when placed,…
Alex Bloom
  • 83
  • 1
  • 1
  • 7
0
votes
1 answer

Accessing to the ws socket server from LAN

I'm trying to access to my websocket server which runs on Apache 2.4.9 on my computer. So here is the config. Apache listens all connections from any IP addresses on 8081 port. So I can access to it using localhost:8081 or my static IP…
0
votes
1 answer

How to edit httpd.conf for www aliasing?

How do I setup Apache, editing the httpd.conf file I think, to properly alias www so my server directs the right way?
thatryan
  • 1,551
  • 6
  • 21
  • 39
0
votes
1 answer

How to change apache2 127.0.0.1 name from localhost to another domain?

Sorry if this question is stupid, but I am a newbie when it comes to apache and servers in general and I have been trying but I can only find windows only answers. I'm running an apache server on a mint vm. When I type localhost, it redirects to the…
chilliefiber
  • 571
  • 2
  • 7
  • 18
0
votes
1 answer

Apache Configurations - Handling Multiple XML entries of same name

All - not sure if I'm on the right track with this or not, but here's what I have so far. We have a processor that needs to go through and handle a series of files we specify in a config file. XMLConfiguration config = new…
aohm1989
  • 401
  • 1
  • 8
  • 19
0
votes
1 answer

Make Apache server available on a LAN via custom ServerName

is it possible to set up an Apache server on a machine which is part of a LAN, then allow machines on the LAN to access the server via a custom ServerName (instead of Localhost). I want to serve a simple website in an office space using a short…
samwatt
  • 43
  • 1
  • 4
0
votes
1 answer

Deployed a Zend App on EC2 and its not working

I'm confused about the problem and not sure if I can provide enough details. I have a php app built on Zend framework which I've successfully deployed on other hosting companies. I am now trying to move to Amazon EC2 I moved all my code and set my…
Gublooo
  • 2,550
  • 8
  • 54
  • 91
0
votes
1 answer

Running two django instances using WSGI/Apache on localhost

I have a web portal that fetches data from another data server(HTTP based) which I need to test on my local machine. In production, multiple versions of the web portal will exist, but fewer of the data servers. Here is my WSGI configuration…
rep_movsd
  • 6,675
  • 4
  • 30
  • 34
0
votes
0 answers

Configuring Apache with Django

I'm trying to configure Apache with Django. Everything is working except the admin panel. It's static files are not loading. The documentation talks about different ways of doing it but none are working for me. Here is my…
maahd
  • 672
  • 2
  • 9
  • 30
0
votes
1 answer

Can I turn off an Apache Directive then turn it on in an include?

I have a VirtualHost block that includes common configuration items, one directive is ProxyPreserveHost. Can I "procedurally" turn off ProxyPreserveHost for a Rewrite directive then have the include turn it back on? For example:
javafueled
  • 494
  • 1
  • 5
  • 23
0
votes
1 answer

Apache RewriteCond rule ... trying to understand previous person

I've gone through the questions and I couldn't find exactly what I was looking for. Logically what the request is to only allow certain IPs access to a certain page. All other IPs should be forwarded to a generic 404 rule (Rather than get a security…
TKL32
  • 21
  • 1
  • 3