Tagged Questions
0
votes
1answer
82 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 ...
2
votes
1answer
110 views
How can I force a VirtualHost in Apache to not listen for undefined subdomains on 443?
In /etc/apache2/sites-available/example.com:
<VirtualHost *:443>
ServerName www.example.com
DocumentRoot /var/www/example.com/htdocs
SSLEngine on
...
2
votes
1answer
24 views
How should I set the default virtualhost?
I want to run 2 websites.
One for www.example.com, and the other for everything else (www.example2.com, www.example3.com)
How I do it?
I tried:
<virtualhost *:80>
ServerName www.example.com
...
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 ...
3
votes
2answers
4k views
Redirect Permanent and https
I just set up HTTPS on my server, and I have an issue with redirect permanent.
Example http://domain.com/index.html it redirect me to http://www.domain.comindex.html
The / (tail ending slash) is ...
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 = ...
2
votes
4answers
3k views
How do I hide the port in my URL?
What am I missing? If I go to mysite.com:9999 I get my site, but not mysite.com Obviously the users shouldn't need to type in the port, so what do I need to do? I'm not really trying to hide the ...
3
votes
2answers
825 views
Apache2 virtual host localhost doesn't render CSS when offline because of absolute path
I'm running apache2 on a local server. I use no-ip.com to route DNS to that server through my cable modem. While disconnected from the web and working on localhost my web pages don't render the CSS ...
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'" ...
2
votes
2answers
135 views
Apache2: Deny access for mail.mydomain.com but allow www.mydomain.com, both points same ip
i have a linux mail+http server located throguh Internet at www.mydomain.com. Domain was bought at GoDaddy so after configuring the server and getting the public ip address i went at GoDaddy's profile ...
1
vote
1answer
571 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 ...
1
vote
1answer
2k views
What is wrong with this Apache httpd.conf file for vhosts?
What is wrong here?
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.apples.co.uk
DocumentRoot /var/www/apples.co.uk
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.apples\.co\.uk$ [NC]
...
0
votes
2answers
772 views
How to configure virtual host to consider domain path in Apache [closed]
the following virtual host definition is working for an arbitrary url starting with "http://1.2.3.4:80/*"
<VirtualHost *:80>
ServerName www.domain.com
DocumentRoot ...
0
votes
1answer
471 views
How to hide awstats url parameters
currently in order to access statistics on my site I access this link:
www.mysite.org/awstats/awstats.pl?config=awstatsconffile.org
all is working fine, but what I want to achieve is simply this:
...
