Tagged Questions
1
vote
1answer
21 views
Automatic redirection from http to https with .htaccess authentication in virtual hosting
Hi I have configured Virtual host on apache with .htaccess authentication with SSL. It's working fine when I typed url https://www.example.com:9004/test.php but when I typed ...
2
votes
1answer
20 views
SetEnv directive not working for localhost VirtualHost but works for other VirtualHost
I have two virtual hosts declared: localhost and test.
Both use the SetEnv directive and point to the same DocumentRoot:
NameVirtualHost *:80
<VirtualHost _default_:80>
DocumentRoot ...
1
vote
1answer
44 views
Can't Get a Virtual Host to Work
I can't get a specific virtual host to work. This is the first part of my httpd-vhosts.conf file:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/Volumes/Data ...
0
votes
1answer
80 views
Apache server not able to read cookies from Browser
I have developed a login authentication page using cookies (with spring security) where for the first time, the user will need to get itself authenticated. Once the user gets successfully ...
1
vote
1answer
329 views
Apache virtual hosts - Resources on website not loaded when accessed from other hostname than localhost
Running virtual hosts on Mac OS X 10.6.8 running Apache 2.2.22.
/etc/hosts is as follows:
127.0.0.1 localhost 3dweergave studio-12.fritz.box
255.255.255.255 broadcasthost
::1 ...
4
votes
1answer
79 views
Unable to view 2 local sites over network
I have 2 websites running on my local machine that I'd like to view from other machines on the same network.
For /etc/apache2/sites-available/site1.com:
<VirtualHost *:80>
ServerName ...
0
votes
2answers
853 views
apache virtual host problem on windows 7 - please explain
This problem has never occurred in the past (i have tried this many times) but this time,
ALL virtual hosts defined in the virtual-hosts.conf file in the apache installation directory direct the ...
0
votes
1answer
423 views
How to use different php.ini files for different VirtualHosts?
I have my site and it's staging subdomain running on the same CentOS machine running apache. The subdomain is created using a VirtualHost, and I use it to find any bugs before I push to production. I ...
0
votes
0answers
14 views
Apache2: How to host apps at different ports with SSL? [duplicate]
Possible Duplicate:
Apache2: How to host apps at different ports with SSL?
I'm trying to achieve quite simple task actually.
I bind application to a port, I enable SSLEngine at each ...
1
vote
1answer
3k views
Managing multiple reverse proxies for one virtual host in apache2
I have many reverse proxies defined for my js-host VirtualHost, like so:
/etc/apache2/sites-available/js-host
<VirtualHost *:80>
ServerName js-host.example.com
[...]
ProxyPreserveHost On
...
1
vote
1answer
66 views
Apache2 “pseudo” doc root
I have several folders in my /www folder that contain various applications. To keep things organized, I keep them in their own folders -- this includes my base application.
Examples:
phpmyadmin = ...
1
vote
1answer
53 views
Forcing adverts via apache configuration file
I have a server I am trying to force adverts for free users. I can do it with a .htaccess file with this line "php_value auto_append_file '/var/www/vhosts/demoblog/demoblog.tk/httpdocs/test_ad.php'" ...
0
votes
2answers
4k views
Virtual host not working in Windows 7 XAMPP
I am using Windows 7 and XAMPP. I want to create a virtual host so I added
127.0.0.1 myawesomeproject
to my hosts file (C:\Windows\System32\drivers\etc\hosts) like this:
# Copyright ...
1
vote
1answer
570 views
Purposes and priorities of Apache conf files
I've installed an Apache2 server on a Linux Box (Ubuntu 10.04 TLS) and am trying to setup some virtual host and proxies. There is some stuff in the apache2.conf, an empty httpd.conf (which was used ...
