Hi,
I'm using Apache2 for completely local development purposes. I'm trying to make DocumentRoot to be /home/vikrant/www/ whereas permissions of /home/vikrant/ are 700.
I'm getting 403 Forbidden when DocumentRoot is /home/vikrant/www/ however It Works! when DocumentRoot is /var/www/.
I've even changed permissions of /home/vikrant/www/ to 777…
I want to run a Tomcat application through a regular website URL, such as www.xyz.com. I would like the root of this domain to act as the base directory for the web application, so each request to www.xyz.com/a/b/c becomes www.abc.com:8080/myApp/a/b/c. Ideally, I would be able to do this transparently and only for certain webapps.
…
This is what I am trying to do:
NameVirtualHost *
<VirtualHost *>
ServerName testsite.org
ServerAdmin webmaster@testsite.org
DocumentRoot /var/www/
</VirtualHost>
<VirtualHost *>
ServerName panel.testsite.org
ProxyPass / http://panel.testsite.org:10000/
…
SOLVED:
The idea is that if the visitor comes from China they have to pass a basic authentication. If you have any other IP address you can visit the site without being hassled (including proxies)
//1400 rules....
SetEnvIf Remote_Addr 222.249.128.0/19 china
SetEnvIf Remote_Addr 222.249.160.0/20 china
SetEnvIf…
I would like to only allow one IP to use up to, say 1GB, of traffic per day, and if that limit is exceeded, all requests from that IP are then dropped until the next day. However, a more simple solution where the connection is dropped after a certain amount of requests would suffice.
Is there already some…
So the same code works on my ubuntu server but when I upload it to my dedicated hosting server running CentOS it seems to add an extra prefix of .:/usr/share/pear:/usr/share/php:
I tried setting includepath to different things but it just doesn't work.
the file is in a directory called language in the same…
How can i redirect all requests passed to
http://mysite.com/css
to
http://otherserver.otherserver.com/css ?
User typing
http://mysite.com/css/somefile.css
and go redirect to
http://otherserver.otherserver/css/comefile.css
Regards
Hi!
I've got a very annoying problem:
our webserver handles 2 (more actually but let's say 2 for a simpler example):
pretassur.fr
pretassuragentimmobilier.fr
Here's what I want to do:
change
(whatever1).pretassuragentimmobilier.fr(/whatever2)
to
…
I have ubuntu machine running lampp. While on the machine I can type localhost or the computers name to access htdocs. From another machine I can only access the machine via its IP Address. This just started happening recently when someone rearranged the…
I am setting up a sort of personal dropbox for our customers on a CentOS 6.3 machine. The server will be accessible thru SFTP and a proprietary http service base on PHP. This machine will be in our DMZ so it has to be secure. Because of this I have…
I'm using a Collabnet svn distribution on linux, and the log files are configured through the standard apache httpd.conf. It's been a while since I dealt directly with apache, but my memory and google seem to indicate that the only way to rotate…
I'm trying to build a web site that let's you view and manipulate data from any page in any other website. To do that, I have to bypass 'Allow Origin' problems: i'm loading the other domain's content in an iframe and i have to manipulate its…
Now it's installed wrongly,
I need to uninstall and reinstall them.
They're installed from source.
How can I efficiently uninstall them first?
I tried make uninstall in php_source_dir,but only got:
make: *** No rule to make target…
I want to build a linux machine to use as a test server (LAMP) and use SVN on it.
I am thinking maybe Ubantu as the OS but what hardware specs would I need. I think the entire site is less than a gig but if SVN is going to keep…
I've got a server with one site which I am redirecting to https via
<VirtualHost *:80>
DocumentRoot /var/www/html/secure
ServerName secure.com
Redirect / https://secure.com
</VirtualHost>
That…
I have just installed Ubuntu 9.10 server edition on my machine and I wish to run my own personal local server with other users in the same LAN.
First, I was wondering what folder directory structure is best for the web…
My site receives a lot of traffic for 2 hours during the day (2000 hits per minute). The rest of the day receives less traffic(500e hits per minute).
I have been experimenting with the MaxClients and MaxSpareServers…
I assume it has something to do with permissions. How would I set the folder to the appropriate permissions on windows? It worked fine when I left it at the default subdirectory of htdocs.
Thanks!
When I access http://localhost/ I get 403 Forbidden, but if I access http://localhost/~username it serves up pages. Things I've tried:
Checking error logs
Swapping out with original httpd conf files
Changing…
I was wondering how to make a simple redirection, I've got WAMP installed on my computer and I wish I could do that: When I go to abc.com it redirects to xyz.com. I did this in the httpd.conf file, but it…
Hi, I was just wondering if it was possible to protect a directory with a username/password combination using .htaccess and .htpasswd files, but not protect the files within.
i.e. One is able to link,…
I've been battle tested on this and failed to achieve my goal which is to deny all access to all directories except the Public directory and only allow access to all all other directories with…
I hope someone can help me. Please take a look at the following snippet of Apache logs:
95-169-172-157.evilvisitor.com - - [12/Nov/2012:09:46:02 -0500] "GET…