Все вопросы: [apache2]

194 вопросов

похожие теги: apache2-module
2
голосов
1ответов
2066 просмотров

Reverse Proxy with Apache2 don't work

I'm using Apache/2.2.8 (Ubuntu) and have a problem. There is a file /etc/apache2/sites-available/backuppc with the following: <VirtualHost *> ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /backuppc http://192.168.134.59:80/backuppc ProxyP...

3
голосов
1ответов
2130 просмотров

Reaching files outside od the documentroot scope

I'm writing a script to build a dynamic website, the website is created by loading external components. The DocumentRoot is location at /sites/website/public the components directory is located at /sites/website/components i wannna reach the data directory of each component depends on the reque...

4
голосов
1ответов
1524 просмотров

appengine, urlfetch, and the content-length header

I have a Google Appengine app requesting pages from another server using urllib2 POSTs. I recently enabled gzip compression on the other server running Apache2, and the Appengine page requests started failing on key-error, indicating 'content-length' is not in the headers. I am not explicitly d...

1
голосов
2ответов
5610 просмотров

Rewrite URLs for static content

I have problems with static files url rewriting in current .htaccess setup on apache2. My app structure is: /siteroot /siteroot/app /siteroot/lib /siteroot/... /siteroot/public <- all the static files (images, js, etc.) stored here /siteroot/index.php /siteroot/.htaccess So, i need to rewr...

0
голосов
2ответов
194 просмотров

Unable to make a 301 domain redirection

Hi I have an application which uses opencart. I would like to make a 301 reditect in case the user types http://example.com. To be redirected in http://www.example.com (301 status code) Here is my .htaccess content: RewriteEngine On \#OPENCART REWRITES START RewriteCond %{REQUEST_FILENAME} !-...

0
голосов
2ответов
458 просмотров

Rails Comments on View if-end statement screw up rendering on Linux/Apache/FastCGI

the following code does work under my Windows development environment, but not on my production Linux/Apache2/FastCGI env. in my view rhtml file : <td id='first_column' class='column'> <% content_for :head do #DO NOT CACHE THIS content for : HEAD %> <%= stylesh...

2
голосов
2ответов
2706 просмотров

Apache2 + RewriteMap + Python -- when returning 'NULL', apache hangs

[SOLVED: See solution below.] I'm having a problem writing a RewriteMap program (using Python). I have a RewriteMap directive pointing to a Python script which determines if the requested URL needs to be redirected elsewhere. When the script outputs a string terminated by a linebreak, Apache r...

5
голосов
1ответов
14629 просмотров

Apache 2.2 reverse proxy not working

I am trying to set up my apache (version 2.2.3) to work as reverse proxy. I configured apache on public server as it is described at http://www.askapache.com/htaccess/reverse-proxy-apache.html LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.s...

0
голосов
2ответов
360 просмотров

Problem to make an apache server run correctly under mod_python

We try to migrate our old server to a new one but we experienced some problems with mod_python. The problem is under this web page: http://auction.tinyerp.org/auction-in-europe.com/aie/ Here is our apache2 configuration: NameVirtualHost * <VirtualHost *> DocumentRoot /var/www/ &lt...

58
голосов
2ответов
51254 просмотров

multiple django sites with apache & mod_wsgi

I want to host several sites with under the same server which uses Debian 5, say I have site1, site2 and site3, and assume my ip is 155.55.55.1: site1: 155.55.55.1:80 , script at /opt/django/site1/ site2: 155.55.55.1:8080, script at /opt/django/site2/ site3: 155.55.55.1:8090, script at /opt/dja...

1
голосов
2ответов
480 просмотров

How to use on the same Apache2 Server 2 differents Certificates using VirtualHost?

I get a certificate from Gandi for a domain www.mondomaine.fr But for sql.mondomaine.fr I wanted to use a Self-Signed SSL certificate. If I active sql.mondomaine.fr, the www.mondomaine.fr is using the self-signed certificate instead of the Gandiś one. If I desactivate the sql. everything works ...

0
голосов
4ответов
3395 просмотров

force download script

I worked on a nice "force download file" script which purpose is to make sure files are being offered to download instead of displayed in the browser, no matter what type of file that is. It used to work well but recently i received feedback that it wouldn't work, notably for pdf and xls files (...

0
голосов
2ответов
799 просмотров

Migrate httpd.conf to .htaccess?

I have a httpd.conf file that looks like this: Alias /robots.txt /var/www/tech_eval/static/robots.txt Alias /favicon.ico /var/www/tech_eval/static/favicon.ico AliasMatch /([^/]*\.css) /var/www/tech_eval/static/styles/$1 Alias /media/ /var/www/tech_eval/static/media/ <Directory /var/www/tec...

0
голосов
1ответов
419 просмотров

apache2 and the magicial php binary

i updated and installed php to 5.2.11 yet 5.1.2 was still being used. I did a search of all php5 binaries and replaced it with a hardlink to php (which says 5.2.11 when writing -v). However, after doing a cold boot apache2 is still using 5.1.2. AFAIK i dont have any binaries left of 5.1.2 and my ...

0
голосов
2ответов
480 просмотров

URL rewriting- How can I turn example.com/pageid.php?id=12 to example.com/full-title

I want to make my pages search engine friendly and it also looks better that example.com/pageid.php?id=12 I have pages different pages like showUser.php showLocation.php and I want all these to be rewritten. Wo'nt mod_rewrite slow down my app a little bit?

0
голосов
2ответов
607 просмотров

apache2.2 x mongrel proxy error

I user apache2.2 mod_proxy_balancer + mongrel + rails2.3 Following error is occured. "proxy: Error reading from remote server returned by" I set this my httpd.conf SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 What's wrong?

0
голосов
1ответов
501 просмотров

OpenSSL error preventing Apache2.2 startup on win32

So I go to start my Apache2.2 service, which uses mod_ssl, from the command line with "-k start -e debug". It shows all the modules loading, waits a second or two, then returns me to the command prompt without error. The service, however, is no longer running. In the error log, there's this te...

4
голосов
1ответов
1542 просмотров

IE6 and IE7 send HTTP/1.1 without hostname on redirect

we use Redirect-after-Post Pattern in our webapp. Sometimes very few error logs are shown in our apache log like this: [error] [...] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): ... in my acces log they show up as [...] "GET /xyz/ HTTP/1.1" 400 226 "-" "-" 72...

0
голосов
3ответов
3299 просмотров

Call to undefined function mysql_connect()

In my googling it seems as though the mysql functions are not included in the base download of php5? I am seeing instructions for Linux, but I am running on a WAMP. Can anyone help me get these enabled? I am fairly sure I have mysql/php/apache configured properly now (certainly apache and php ar...

0
голосов
1ответов
292 просмотров

Apache2.2 APR load error

The server starts without complaint, but as soon as I hit a page that requires an Apache2 module, like Apache2::Cookie, it dies: Can't load 'C:/Perl5.10/site/lib/auto/APR/Request/Request.dll' for module APR::Request: load_file:The specified module could not be found at C:/Perl5.10/lib/DynaLoader...

6
голосов
1ответов
5390 просмотров

Performance of concurrency in Django (apache2 prefork/mod_wsgi), what am I doing wrong?

First of all I am not in any way unhappy with the performance of my Django powered site, its not getting massive traffic, a bit over 1000 visits per day so far. I was curious how well it would cope with heavy traffic peaks so I used the ab-tool to do some benchmarking. I noticed that the perfor...

1
голосов
1ответов
597 просмотров

How do I configure PerlSections in mod_perl2?

I'm trying to use a [PerlSection][1] to get the server name and then use it to configure some RewriteCond-RewriteRule pairs and some other things. It seems I can't get very far. It says you can do this: Apache2->httpd_conf("PerlPassEnv $key $val"); But trying to start Apache I get this sy...

2
голосов
3ответов
1104 просмотров

HTTP Basic Auth, reading password file and performance

I'm curious to know what are the performance impacts of using HTTP Basic Auth on a webserver like Apache or lighttpd or nginx. I imagine the bottleneck is the actual reading of the file by the server to authenticate a user. It also seems to me that the cost of reading the file to authenticate a u...

15
голосов
1ответов
6637 просмотров

Generate access logs for different subdirectories in Apache

I have some sub-applications in my site, for example: http://server/app/subapp1 http://server/app/subapp2 How can I generate different log files for each directory? http://server/app/subapp1/log/access_log http://server/app/subapp2/log/access_log

1
голосов
1ответов
3701 просмотров

Tomcat behind Apache: Using SSL with j_security_check

I have a little problem with using SSL on a Tomcat that is behind Apache. I have used Google all morning to try to find a good solution, but nothing so far. As a part of my SSL VirtualHost configuration I have <Location /MyApp/> ProxyPass http://localhost:8080/MyApp/ </Location> ...

2
голосов
1ответов
3612 просмотров

Apache 2.2 localhost VirtualHosts problems

I am trying to setup my dev machine with virtual hosts so I can access my development projects with a simple url, like http:// project.dev/ rather that a whole http:// 127.0.0.1/dev/path/to/root/of/project/ type of url. Now, I'm aware there are many tutorials and questions already answered about...

1
голосов
5ответов
168 просмотров

How do you make a site private?

I'm just fooling around, learning the ins and outs of web development and I'd like to make my domain private until I'm ready to display it. What's the best way to do this? BTW, I have an Apache server on Debian.

0
голосов
2ответов
679 просмотров

Nested URLs and Rewrite rules in Apache2

I need some help with rewrite rules and nested URLs. I am using TikiWiki for my website and am in the process of setting up SE friendly URLs for my projects. Specifically, I have the following rewrite rule for www.example.com/projects to point to a page that lists out all the projects hosted in ...

1
голосов
4ответов
338 просмотров

test.php cannot output file into Leopard filesystem

may i know what permission do i need to add, to allow test.php to able to write file into macos filesystem PHP Error: <br /> <b>Warning</b>: file_put_contents(20090915203127.jpg) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open ...

18
голосов
1ответов
2579 просмотров

Tornado is "a relatively simple, non-blocking web server framework written in Python"--can somewhat explain what that means?

This is probably a stupid question, but what exactly is a "non-blocking web server"? All web servers are technically non-blocking, arent they? otherwise how could they handle simultaneous connections? Apache2 achieves this using a combination of fork() and pthreads. How exactly are Tornado (and T...