I want to use wildcards to send the request to any sobdomains to the folder of the domain.please specify how to achieve this in apache2 using the virtual host settings.The domain and its subdomain uses the same IP address. the subdomains cannot be predetermined as they are created by users.
Thanks
...
Pretty much all of our sites are setup the standard mod_php, apache2, LAMP style with the static media living on the same domain as the dynamic php scripts.
I'm wondering if there are any practical benefits to actually switching to a cdn? If I'm not really having issues with my server performance, is it really worth it? ( Our servers ty...
I'm trying to point DocumentRoot at a directory in my user folder. While I can happily point DocumentRoot at /Library/WebServer/Documents and ~/Sites I keep getting "You don't have permission to access / on this server." when I point it anywhere else.
OK, I just found a solution mid-question (stack overflow is just that good) by changin...
i want to have apache server to serve only
/var/www/ directory
now it serves all my files on system from directory
"/"
i tried to edit httpd.conf placed in /etc/apache2 and placed the folllowing content in it(intially it was empty)
<Directory />
Options None
AllowOverride None
</Directory>
DocumentRoot "/var/www"
<Directory "/...
I am a beginner in Perl CGI etc. I was experimenting with server-push concept with a piece of Perl code. It is supposed to send a jpeg image to the client every three seconds.
Unfortunately nothing seems to work. Can somebody help identify the problem?
Here is the code:
use strict;
# turn off io buffering
$|=1;
print "Content-type: mu...
Hey,
I have a problem on one of our webservers.
I'll try to explain it as clear as possible, but I'm not 100% aware of all the configuration of the server.
There are 2 sites running next to eachother (blcc_preprod and blcc_prod), so in the 'sites-enabled' of apache this i have a file 'blcc' like this:
<VirtualHost *:80>
DocumentRoo...
All,
I am using the following command to retrieve the domain name of my server.
$_SERVER['HTTP_HOST']
This seems to return the IP address instead of domain name like www.example.com. I looked at PHPInfo and it also lists an IP address for HTTP_HOST instead of Domain name. What do I need to change to make the domain name appear instea...
Hello,
This is my first shot at trying out cgi-perl scripts. I have SSH keys set up between my (root user) local machine and a remote machine. I'm trying to run a command on the remote box and display the output on a webpage hosted from my local machine. The script runs fine from command line however, it throws SSH key error when called...
Am not able to upload a 8.4 MB file, in a passenger app behind apache. Transferring the same file via scp took 4.1 minutes.
Error backtrace:
[ pid=10222 file=ext/apache2/Hooks.cpp:727 time=2010-05-18
07:13:14.842 ]:
Unexpected error in mod_passenger: An error occurred while receiving
HTTP upload data: Connection reset by peer (104)
B...
I have a web site with many virtual hosts and each registered with several domain names (ending in .org, .de), site1.mysite.de, site2.mysite.org
Then I have different templating systems based on several programming languages (perl and php) in use on the web server.
The Google Maps Api requires a unique Google Maps api key for each vhos...
It is necessary to load on one domain name pages from different web servers (apache2). For example, www.somesite.ru/page/ loads from server 12.34.56.78 and www.somesite.ru/another_page/ loads from another server 12.34.56.79.
How to make, what it would work?
...
I'm trying to clean up our ErrorLog to eliminate entries stating "File does not exist" when the corresponding access log entry shows 301 (redirect).
The message is correct in that the requested file doesn't exist, but our custom ErrorDocument is redirecting the user to the correct location via a 301 / Redirect code.
Recently, we starte...
I have a test site set up as a virtual host in my Apache2 config file. It already has a directive for the root folder that first only authorizes access from a specific set of IP addresses, and then only after the user is also authenticated by Basic HTTP Auth.
I would now like to add 127.0.0.1 to the list of allowed IP addresses (the ap...
Actually its the mono version of asp.net, XSP.
In my begin request function i check the url and rewrite when necessary. In one case i do
context.RewritePath("~/App_Data/public" + path);
When i try to request images or anything i get a 404 instead of the content. Why?
...
Hello,
I want to pass an environment variable in linux to apache on start up.
export MYVAR=5
--I define my environment variable on the command line
PassEnv MYVAR
--set apache to import the variable in apache config file
apachectl restart
--when I restart apache I don't get an error message. However I have noticed
that if I do not c...
I have next SVN repositories structure running Apache 2.2 under Windows Server 2008:
http://example.com/svn/ is targeted to e:\svn (root)
http://example.com/svn/dir/ is targeted to e:\svn\dir (some directory with a number of repositories)
http://example.com/svn/dir/repo/ is targeted to e:\svn\dir\repo (a repository itself)
How to acc...
Hi,
a colleague of mine wrote a webservice that runs on port 8081 of our Windows 2008 Server.
He uses the class ServiceHost, afaik this means its a standalone host (no IIS or ASP involvement). Note: I'm new into WCF ;)
Now there are some issues with clients behind a firewall blocking the requests to remote port 8081 of our server (wher...
I need to install apache http server 2.2.15 in solaris 9 .But in apache site ,only source is available for solaris.
Please help me to find binary distribution for solaris 9?
If i have to compile the source to binary for solaris,tell me how to compile the source for solaris 9?
...
I'd like to debug PHP apps, but I want to setup Apache web server (httpd.exe).
I right clicked SERVERS, Add Server..., then noticed there is no option for httpd.exe, just for Glashfiish, JBoss, Apache Tomcat, and some other servers.
So, how can I add Apache Web Server (right from within the IDE just like other servers), and then proper...
I've seen this question posted a few times using a Google search, with no real answers. I have a multi-threaded FastCGI application running with Apache 2.2 on FreeBSD 7.2. There are a few issues with it, and I am unable to really figure out the source of the problem even after poking through a bunch of the mod_fastcgi source code.
My F...