[users@httpd] Apache: Avoiding users to access 'www.foo.com/subdomain1/'
Hi. I have an Apache server, which main rootwebdir is '/usr/www/users/foo/' and 'foo.com' points there. However, I have some subdomains pointing within their directories: subdomain1.foo.com ---> /usr/www/users/foo/subdomain1subdomain2.foo.com ---> /usr/www/users/foo/subdomain2 This causes me a problem: if anyone types ' www.foo.com/subdomain1/aboutme.html', they find ' subdomain1.foo.com/aboutme.html' with another URL, and I'd like to avoid it. I wondered if there was any way to avoid this (e.g., showing a 404 page), by using a directive within the '.htaccess' file of '/usr/www/users/foo/subdomain1'. Any other solution is welcome. Thank you very much.
[users@httpd] Re: RewriteRule not working, 404 error obtained
I fixed it. I modified "httpd.conf", replacing "AllowOverride None" with "AllowOverride All" within the "". On Tue, Jun 28, 2016 at 7:03 PM, thomas Armstrong <tarmstr...@gmail.com> wrote: > Hi. > > Using Apache/2.2.31, I created the following rule on my '.htaccess' file: > -- > RewriteEngine on > RewriteRule ^([^/]+)/$ /do.php?label=$1 [L] > -- > > However, when accessing 'http://foo.com/whatever/', I get a 404 error > message. I've checked my error log and: > --- > [Mon Jun 27 11:12:15 2016] [error] [client 192.168.1.132] File does not > exist: /path-to-web/whatever, referer: http://foo.com/ > --- > > 'http://foo.com' works ok, and 'http://foo.com/do.php?label=whatever' > works ok as well. > > I've checked phpinfo, and 'mod_rewrite' is loaded in Apache. Additionally, > I tried to enable it via 'http.conf', but Apache tells me that "module > rewrite_module is built-in and can't be loaded". > > What am I doing wrong? This same '.htaccess' works ok in two other Apache > servers. > > I tried with "Options +FollowSymLinks -MultiViews" as well. Thank you very > much > >
[users@httpd] RewriteRule not working, 404 error obtained
Hi. Using Apache/2.2.31, I created the following rule on my '.htaccess' file: -- RewriteEngine on RewriteRule ^([^/]+)/$ /do.php?label=$1 [L] -- However, when accessing 'http://foo.com/whatever/', I get a 404 error message. I've checked my error log and: --- [Mon Jun 27 11:12:15 2016] [error] [client 192.168.1.132] File does not exist: /path-to-web/whatever, referer: http://foo.com/ --- 'http://foo.com' works ok, and 'http://foo.com/do.php?label=whatever' works ok as well. I've checked phpinfo, and 'mod_rewrite' is loaded in Apache. Additionally, I tried to enable it via 'http.conf', but Apache tells me that "module rewrite_module is built-in and can't be loaded". What am I doing wrong? This same '.htaccess' works ok in two other Apache servers. I tried with "Options +FollowSymLinks -MultiViews" as well. Thank you very much
[users@httpd] htaccess in a directory under one with another htaccess
Hi. On my Apache Server, I have this structure to host a website under '/' and a WordPress blog under '/myblog' directory: --- root_directory/.htaccess --- root_directory/php_stuff --- root_directory/myblog/.htaccess --- root_directory/myblog/php_wp_stuff Within 'root_directory/.htaccess' file I have several RewriteRules: RewriteRule ^item/([^/]+)/ /item.php?label1=$1 [L] RewriteRule ^([^/]+)/([^/]+)/$ /category.php?label1=$1label2=$2 [L] --- which work with http://www.example.com/item/book-10003/ and http://www.example.com/science/maths/ However, if I try to access http://www.example.com/myblog/ or http://www.example.com/myblog/hello-world/ I got a 404 error. So I modififed the .htaccess: -- RewriteRule ^myblog - [L,NC] RewriteRule ^item/([^/]+)/ /item.php?label1=$1 [L] RewriteCond %{REQUEST_URI} !^/myblog/ RewriteRule ^([^/]+)/([^/]+)/$ /category.php?label1=$1label2=$2 [L] --- I tried to avoid 'myblog' directory to be ruled by the 'RewriteRules'. However, it works with http://www.example.com/myblog/ but not with http://www.example.com/myblog/hello-world/ What am I doing wrong? I also tried by adding these lines at the bottom of .htaccess, but I does not work: -- RewriteBase /myblog/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /myblog/index.php [L] Any tip is welcome. Thank you very much.
[EMAIL PROTECTED] Apache 2.2 as a static server (without PHP) to serve images
Hi. I've got Apache 2.2 with PHP running on my Linux box to serve dynamic pages. I was told that Apache 2.2 allows to create a secondary process which doesn't use PHP to serve images or static files without installing a secondary Apcache webserver or lighttpd. Is it possible? How can I configure my Apache? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache 2.2 as a static server (without PHP) to serve images
Sure, make a copy of the httpd.conf file, remove everything that refers PHP (the LoadModule basically), then run a secondary Apache using that config file. You'll have to use a different port of course and redirect images and the like to the secondary apache. But... why? Thank you very much for your answer. AFAIK, when Apache answers a petition of dynamic content, it requires 10-20 MB. If you request for an image, then this 20MB process is serving static content inefficiently, which could be served just by a 1MB process. So I want to run another Apache with less memory requirements to serve these static contents. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] How to FilesMatch files within a certain domain
Hi. I want to cache multimedia files by using mod_expires and created this rule within my .htaccess file: --- ExpiresActive On FilesMatch \.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|swf)$ ExpiresDefault A29030400 /FilesMatch However, this .htaccess file is shared by five VirtualHosts, and I would like to determine which VirtualHost must cache multimedia files. I mean: - static.foo.com must cache files - www.foo.com must not I tried with SERVER_NAME variable, but it won't work. I'd be grateful if somebody could give me a hint to build the rule. Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] mmap cache can't open foo.php - Too many open files
You can use the apachectl script which internally does the same or issue the following command from the command prompt ulimit -S -n `ulimit -H -n` and then start the Apache, hopefully it will resolve the issue :) Thank you very much for you answer. I inserted this line on my /etc/rc.d/rc.local ulimit -n 16384 - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] mmap cache can't open foo.php - Too many open files
Hi. Using Apache version 2.2.3 on 'Linux CentOS', my webpages are very slow and I get this error messages on my 'error_log' file: --- [Wed Mar 26 13:05:39 2008] [warn-phpd] mmap cache can't open /var/www/classes/Threads.php - Too many open files (pid 17650) [Wed Mar 26 13:05:42 2008] [warn-phpd] mmap cache can't open /var/www/classes/User.php - Too many open files (pid 17650) [Wed Mar 26 13:05:46 2008] [warn-phpd] mmap cache can't open /var/www/lib/Functions.php - Too many open files (pid 17650) --- I've got PHP 5.2.5 and APC (a Cache System) 3.0.17. Does it something to do with Apache? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Re: mmap cache can't open foo.php - Too many open files
Some data of my server: []# free -m total used free sharedbuffers cached Mem: 2693267 2425 0 0 0 -/+ buffers/cache:267 2425 Swap:0 0 0 []# ulimit -m unlimited As you see, my Host provider gave me a VPS server with Swap=0. ? On Thu, Mar 27, 2008 at 10:08 AM, thomas Armstrong [EMAIL PROTECTED] wrote: Hi. Using Apache version 2.2.3 on 'Linux CentOS', my webpages are very slow and I get this error messages on my 'error_log' file: --- [Wed Mar 26 13:05:39 2008] [warn-phpd] mmap cache can't open /var/www/classes/Threads.php - Too many open files (pid 17650) [Wed Mar 26 13:05:42 2008] [warn-phpd] mmap cache can't open /var/www/classes/User.php - Too many open files (pid 17650) [Wed Mar 26 13:05:46 2008] [warn-phpd] mmap cache can't open /var/www/lib/Functions.php - Too many open files (pid 17650) --- I've got PHP 5.2.5 and APC (a Cache System) 3.0.17. Does it something to do with Apache? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] [error] [client 127.0.0.1] Directory index forbidden by Options directive
Hi. Using Apache 2.2 with Plesk, I found out these error messages on my 'error_log' file: [Wed Mar 26 18:45:50 2008] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/ [Wed Mar 26 18:49:57 2008] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/ I didn't access my webserver from my webserver, so I consider these errors are due to some script which tries to access '/var/www/html/'. My project is located at: /var/www/html/vhosts/foo.com/httpdocs Any similar experience? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] You don't have permission to access foo.php on this server.
Hi. Using Apache/2.2 + PHP/5.2, I'm suffering an odd issue when accessing an image generated with PHP. When I access: http://www.foo.com/apc.php?IMG=11206615989 I get *SOMETIMES* this error message --- Forbidden You don't have permission to access /apc.php on this server. -- But most of times I access ok to the image, without any error message. Any similar experience? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Re: You don't have permission to access foo.php on this server.
This is my Apache configuration (I use Plesk): - DocumentRoot /var/www/vhosts/foo.com/httpdocs/web Directory /var/www/vhosts/foo.com/httpdocs/web php_admin_value open_basedir /var/www/vhosts/foo.com/httpdocs:/tmp:/usr/share/pear/plugins:/usr/share/php/plugins Order Allow,Deny Allow from all AllowOverride all DirectoryIndex index.php /Directory -- On Thu, Mar 27, 2008 at 12:21 PM, thomas Armstrong [EMAIL PROTECTED] wrote: Hi. Using Apache/2.2 + PHP/5.2, I'm suffering an odd issue when accessing an image generated with PHP. When I access: http://www.foo.com/apc.php?IMG=11206615989 I get *SOMETIMES* this error message --- Forbidden You don't have permission to access /apc.php on this server. -- But most of times I access ok to the image, without any error message. Any similar experience? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] RewriteEngine on creates a 403 Forbidden error
Hi. I'm experiencing one problem with Apache2 on Linux. If I insert a RewriteEngine On line in .htaccess, webpages return a 403 Forbidden Error. I inserted these lines in 'httpd.conf': Directory /var/www/httpdocs Options Indexes FollowSymLinks AllowOverride All FCGIWrapper /var/www/httpdocs/bin/php5 .php5 FCGIWrapper /var/www/httpdocs/bin/php5 .php Options ExecCGI Allow from all Order Allow,Deny /Directory -- If I create a 'http://www.mydomain.com/phpinfo.php', there's no info about 'mod_rewrite'. But if I open '/etc/httpd/conf/httpd.conf', I see: - LoadModule rewrite_module modules/mod_rewrite.so And if I list compiled modules: -- []# httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RewriteEngine on creates a 403 Forbidden error
What does the apache error log say? [Fri Feb 22 10:03:38 2008] [error] [client 103.160.51.28] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/httpdocs/phpinfo.php - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Alias returns a 403 Forbidden error only with PHP files
Hi. Using Apache2 on Linux, I get a 403 Forbidden error only when I access PHP files: http://www.domain.com/foo/hello.php but it works fine with HTML files http://www.domain.com/foo/hello.html In addition, PHP scripts work fine on root directory (outside Alias directories): http://www.domain.com/hello.php WORKS OK I don't see any information on error logs, and I've got no idea about how to fix this. This is my httpd.conf configuration - Alias /foo/ /var/www/httpdocs/modules/foo/web/ Directory /var/www/httpdocs/modules/foo/web/ Options Indexes FollowSymLinks Order Allow,Deny Allow from all AllowOverride all DirectoryIndex index.php /Directory - Any suggestion? Thank you very much, --Thomas - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Alias returns a 403 Forbidden error only with PHP files
Look again in the apache error logs. There really should be something there. Most likely it is this: http://wiki.apache.org/httpd/13PermissionDenied I checked error logs again and didn't found any message. If I add ExecCGI I get a 500 Internal Error message, with this line on the error logs: [Fri Feb 22 11:27:45 2008] [error] [client 183.10.52.18] Premature end of script headers: hello.php, referer: http://www.domain.com/foo/ Thank you very much again for your help. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Alias returns a 403 Forbidden error only with PHP files
There's an entry for that error message on the wiki. Have you read it? I was reading: http://wiki.apache.org/httpd/CommonHTTPStatusCodes But no more explicit info about 403 Forbidden messages. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Alias returns a 403 Forbidden error only with PHP files
This seems to be a problem with your FastCGI configuration. (FastCGI is also probably at fault for returning a 403 without logging something interesting.) You haven't said which FastCGI module you are using, and I don't know much about FastCGI in the first place, so I can't help further. How can I know which FastCGI module I'm using? Thx. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Alias returns a 403 Forbidden error only with PHP files
I think that this has to do with these lines inserted at the top of the VirtualHost configuration: AddHandler fcgid-script .php .php5 SuexecUserGroup myuser psacln DocumentRoot /var/www/httpdocs/web ErrorLog /etc/httpd/logs/dev_error_log Directory /var/www/httpdocs/web Options ExecCGI Indexes FollowSymLinks AllowOverride All Allow from all FCGIWrapper /var/www/bin/php5 .php5 FCGIWrapper /var/www/bin/php5 .php Order Allow,Deny /Directory - Facts: - I did: []# chown -R myuser /var/www - I did: []# chgrp -R psacln /var/www - I did: []# chmod -R 755 /var/www (so everybody can execute and read all the files) - 'psacln' group does exist in '/etc/group' - 'myuser' user does exist in '/etc/passwd' - '/var/www/bin/php5' does exist - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] RewriteRule: foo.com/directory -- foo.com/directory/
Hi. Using Apache 2, I want to create a RewriteRule within the '.htaccess' file which redirects from: http://foo.com/directory to http://foo.com/directory/ This last directory is a RewriteRule: -- RewriteRule ^([^/]+)/$ /directory.php?label=$1 [L] - I tried adding this line - RewriteRule ^(.*)$ /$1/ [R=301] - after and before the last line, but I get this error message: -- The page isn't redirecting properly -- and the URL I get is: http://foo.com/directory.php/?label=directory.php What am I doing wrong? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 'domain.com/foo' = 404 but 'domain.com/foo/' works fine
Hi. I created this .htaccess: - RewriteRule ^([^/]+)/$ /page.php?id=$1 [L] --- And it works fine with: http://domain.com/foo/ (it shows a webpage) But it shows a 404 error page with: http://domain.com/foo I tried adding this line to .htaccess: RewriteRule ^([^/]+)$ /page.php?id=$1 [L] - But now it shows a 500 error webpage in both cases. Any suggestion? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] 'domain.com/foo' = 404 but 'domain.com/foo/' works fine
Hi Eric. Thank you very much for you answer. I typed: - RewriteRule ^([^/]+)/*$ /page.php?id=$1 [L] - and got 500 error message on every page on my website. The same with: --- RewriteRule ^([^/]+)/?$ /page.php?id=$1 [L] Regards, --Thomas On Dec 12, 2007 1:31 PM, Eric Covener [EMAIL PROTECTED] wrote: On Dec 12, 2007 7:18 AM, thomas Armstrong [EMAIL PROTECTED] wrote: Hi. I created this .htaccess: - RewriteRule ^([^/]+)/$ /page.php?id=$1 [L] --- And it works fine with: http://domain.com/foo/ (it shows a webpage) But it shows a 404 error page with: http://domain.com/foo Looks like ending your pattern in /?$ or /*$ would allow you to throw away 0 or more trailing slashes. -- Eric Covener [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] An error occurred while processing your request
Hi. Using Apache 2 on Linux, I suffer frequently this error message: --- An error occurred while processing your request. Reference #67.c7ec0f50.1295581330.24f1cb25 -- This is a blank page with the message. Any similar experience? Does it someting to do with Akamai service? (My customer uses Akamai cache service) Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache Performance Analysis tools
Hi. Using Apache 2.0.52, I'd like to analyze the performance and know how resources (memory, threads) are used during a period of time. Do you know any tool to carry it out? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Does Alias /foo/bar/ work?
Thank you very much, Tony. I've found out that my problem was another Alias directory: - Alias /foo1/ /usr/www/foo1/ - which I placed *after* Alias /foo1/foo2/. So Apache was looking for /usr/www/foo1/foo2 directory. You must place Alias /foo1/ *BEFORE* Alias /foo1/foo2 On Nov 16, 2007 10:35 AM, Tony Stevenson [EMAIL PROTECTED] wrote: Several things here Thomas, Can you look in your errorlog [1] and paste the error's that relate to this 404. Do you have a global DirectoryIndex setup so Apache knows which file to serve by default, i.e. DirectoryIndex index.html as you have not specified one in your vhost it will take the gloable default, if you have one. Check this file exists. The logs will show us exaclty what is at fault here, and will help us diagnose the issue much more quickly [1] Look here to find it if you dont know where it is -- http://wiki.apache.org/httpd/DistrosDefaultLayout Tony thomas Armstrong wrote: Hi. Using Apache 2.0 on Linux (with 'mod_alias' loaded), I want to set an alias: /foo1/foo2/ -- /usr/www/example/foo2/ This is part of my 'httpd.conf': --- VirtualHost example.com DocumentRoot /usr/www/example/web ServerName example.com Alias /foo1/foo2/ /usr/www/example/foo2/ Directory /usr/www/example/foo2/ Options Indexes FollowSymLinks Order Allow,Deny Allow from all AllowOverride all DirectoryIndex index.php /Directory /VirtualHost But if I access: http://example.com/foo1/foo2/ I get a 404 error. Any suggestion? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Does Alias /foo/bar/ work?
Hi. Using Apache 2.0 on Linux (with 'mod_alias' loaded), I want to set an alias: /foo1/foo2/ -- /usr/www/example/foo2/ This is part of my 'httpd.conf': --- VirtualHost example.com DocumentRoot /usr/www/example/web ServerName example.com Alias /foo1/foo2/ /usr/www/example/foo2/ Directory /usr/www/example/foo2/ Options Indexes FollowSymLinks Order Allow,Deny Allow from all AllowOverride all DirectoryIndex index.php /Directory /VirtualHost But if I access: http://example.com/foo1/foo2/ I get a 404 error. Any suggestion? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] My Apache server doesn't execute my CGI script, but download it
Hi. Using Apache 2.0 on Linux, I'm trying to create a directory to execute CGI scripts: - VirtualHost 210.15.21.186 ... DocumentRoot /home/project/web/ ... Alias /foo/ /home/project/foo/web/ Directory /home/project/foo/web/ Options Indexes FollowSymLinks Order Allow,Deny Allow from all AllowOverride all DirectoryIndex index.php /Directory Directory /home/project/foo/web/uploader Options +ExecCGI AddHandler cgi-script .cgi .pl /Directory ... /VirtualHost - If I access http://210.15.21.186/foo/uploader/hello.cgi, Apache downloads it. But if I execute it via shell, it displays a hello world message. 'hello.cgi' script and 'uploader' directory are 755 chmoded. What am I doing wrong? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] My Apache server doesn't execute my CGI script, but download it
Thank you very much. it's fixed On Nov 12, 2007 10:44 AM, Vincent Bray [EMAIL PROTECTED] wrote: On 12/11/2007, thomas Armstrong [EMAIL PROTECTED] wrote: If I access http://210.15.21.186/foo/uploader/hello.cgi, Apache downloads it. But if I execute it via shell, it displays a hello world message. 'hello.cgi' script and 'uploader' directory are 755 chmoded. Are you sure you have mod_cgi loaded? If that's not the problem, please accept the download and tell us what's in it (the text of the cgi script, or the result of running it). Also, make sure you flush your browser's cache during requests while testing via its menus and possibly restart it. If none of that help, take a look here for instructions on determining the Content-Type: response header: http://wiki.apache.org/httpd/WatchingHttpHeaders -- noodl - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] How can I change the Content-Type of CGI scripts?
How can I change the Content-Type of CGI scripts? Hi. Working with Apache 2.0 (on a customer's server and on my own server), I've got a '500 Internal Server Error' with a CGI application. When accessing 'http://customer_machine/test.cgi', Firefox tries to download the error webpage. But when accessing 'http://my_own_machine/test.cgi', Firefox shows the HTML error webpage. Analyzing headers --- http://customer_machine/test.cgi HTTP/1.1 500 Internal Server Error Content-Type: application/x-cgi -- http://my_own_machine/test.cgi HTTP/1.1 500 Internal Server Error Content-Type: text/html; charset=iso-8859-1 -- How can I change the Content-Type of CGI scripts? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] How to mask an URL with .htaccess
Hi. I want to make http://mysite.com/post/004.htm -- http://mysite.com/post.php?id=004 but not redirecting but masking the URL (the first URL must be shown and not the second one). My .httaccess: -- RewriteEngine On RewriteBase / DirectoryIndex index.php index.html RewriteRule ^post/(.*).htm post.php?id=$1 [R=301,L] --- I also tried with: RewriteRule ^post/(.*).htm post.php?id=$1 **whithout R,L** I got this URL: http://mysite.com/post.php/005.htm?id=005 I also tried with RewriteRule ^post/(.*).htm post.php?id=$1 [L] I got this URL: http://mysite.com/post.php?id=005 I also tried with RewriteRule ^post/(.*).htm http://mysite.com/post.php?id=$1 [L] I got this URL: http://mysite.com//post.php/005.htm?id=005 Any suggestion? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond
Thank you everybody. However I'm still gettint the same odd effect. I tried: RewriteRule ^faq index.php?page_id=119 [R,L] --- it doesn't mask the URL RewriteRule ^faq index.php?page_id=119 [R,TP] -- Internal server error RewriteRule ^faq index.php?page_id=119 -- it's caught by index.php, I suppose I also tried by editting it on 'httpd.conf': RewriteRule http://myblog.com/faq http://myblog.com/index.php?page_id=119 [R,L] .. But I'm not sure Apache is taking it into account. :( On 5/30/07, Vincent Bray [EMAIL PROTECTED] wrote: On 30/05/07, Russ [EMAIL PROTECTED] wrote: I'm a bit confused. R means redirect, meaning the server sends the 301 or 302 header to the browser. In either case, the browse will redirect to the new URL and that's what will show in the address bar. How evactly do you make things redirect without proxying and without a change in the address bar? Do as Joshua pointed out. First try without any flags at all, and in case that doesn't work try with [PT]. I expect you won't need any flags. -- noodl - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond
Hi. I'm trying to create an additional Rewrite Rule appart from those created by default by my application (in this case, Wordpress). The extra line (within '.htaccess') is: --- RewriteRule ^faq index.php?page_id=119 [R,L] --- However, I want users see 'http://myblog.com/faq' and not 'http://myblog.com/index.php?page_id=379'. This line works with other Apache configurations, but not with mine. Any suggestion? .htaccess - RewriteEngine On RewriteBase / DirectoryIndex index.php # MY OWN REWRITE RULES RewriteRule ^faq index.php?page_id=119 [R,L] # Rewrite www.domain.com to domain.com RewriteCond %{HTTP_HOST} ^www\.(.*) RewriteRule ^(.*) http://%1/$1 [R,L] #uploaded files RewriteRule ^(.*/)?files/$ index.php [L] RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule . - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] -- - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Problems with an extra Rewrite Rule before a RewriteCond
How exactly isn't is working? Instead of 'http://myblog.com/faq' URL I see 'http://myblog.com/index.php?page_id=379'. The information is OK, but I think it's an ugly URL. Do you see a loop? Nope What does the error log tell you? There's no error Are you able to edit the main server config file to enable rewrite logging? Yep, but I've got the same problem. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Problem with htaccess (/year/month/day/)
Yep, I agree it's better using RewriteRules within httpd.conf but... I'm not allowed with this server :( Is it possible to use RewriteLog within '.htaccess'? Thank you very much for your answer. On 5/26/07, Joshua Slive [EMAIL PROTECTED] wrote: On 5/25/07, thomas Armstrong [EMAIL PROTECTED] wrote: I'm trying to make my website works with http://www.domain.com/2007/05/25/foo to server http://www.domain.com/redirect.php With Apache 2.2, my .htaccess: RewriteEngine On RewriteRule ^([0-9]+)/([0-9]+)/([0-9]+)/(.*) /redirect.php [QSA,L] RewriteRule ^([0-9]+)/([0-9]+) /redirect.php [QSA,L] If I type: - http://www.mydomain.com/2007/05, it works - http://www.mydomain.com/2007/05/25/foo, I get a 404 error message. What am I doing wrong? Not using the RewriteLog to debug your mod_rewrite config. Things go much easier in general if you put your mod_rewrite config in httpd.conf rather than .htaccess. If you don't have access to httpd.conf, then you should setup a test server on another machine to debug your rewrite stuff. (I don't see anything obviously wrong with your RewriteRules, but the RewriteLog will tell you what is really going on.) Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Problem with htaccess (/year/month/day/)
I'm trying to make my website works with http://www.domain.com/2007/05/25/foo to server http://www.domain.com/redirect.php With Apache 2.2, my .htaccess: RewriteEngine On RewriteRule ^([0-9]+)/([0-9]+)/([0-9]+)/(.*) /redirect.php [QSA,L] RewriteRule ^([0-9]+)/([0-9]+) /redirect.php [QSA,L] If I type: - http://www.mydomain.com/2007/05, it works - http://www.mydomain.com/2007/05/25/foo, I get a 404 error message. What am I doing wrong? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Service Unavailable - Zero size object
Hi. Using Apache 2.0.52 + PHP 4.3.10 on Linux (Fedora Core 2), I get this error message when accesing my PHP page: --- Service Unavailable - Zero size object The server is temporarily unable to service your request. Please try again later. Reference #15.21eaaad4.1173400585.294a7ed8 --- Does anybody have any experience with this issue? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Re: Service Unavailable - Zero size object
I fixed it by restarting Apache, but I'd like to know the reason of this error. On 4/24/07, thomas Armstrong [EMAIL PROTECTED] wrote: Hi. Using Apache 2.0.52 + PHP 4.3.10 on Linux (Fedora Core 2), I get this error message when accesing my PHP page: --- Service Unavailable - Zero size object The server is temporarily unable to service your request. Please try again later. Reference #15.21eaaad4.1173400585.294a7ed8 --- Does anybody have any experience with this issue? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] (8)Exec format error: exec of 'test.CSS' failed when ScriptAlias
Hi, Using Apache 2.0.59 on Linux, I try to install a ScriptAlias. My DocumentRoot is '/home/project/web', and the ScriptAlias directive within httpd.conf is: - ScriptAlias /videos/ /home/project/modules/videos/web/ Directory /home/project/modules/ AddHandler application/x-httpd-php .php AddHandler text/css css /Directory - 'http://foo/videos/test.php' works ok, but 'http://foo/videos/test.css' doesn't. I get a '500 Internal Server Error', and browsing the error log: - [Wed Mar 07 04:58:55 2007] [error] [client c4e:d008:f82f:8ebf:307f:d300:a00:0] (8)Exec format error: exec of '/home/project/modules/videos/web/test.css' failed [Wed Mar 07 04:58:55 2007] [error] [client c4e:d008:f82f:8ebf:307f:d300:a00:0] Premature end of script headers: test.css - I chmoded 777 all the '/home/project/modules/videos/' directory. What am I doing wrong? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Re: (8)Exec format error: exec of 'test.CSS' failed when ScriptAlias
Sorry, it works ok. I failed to include the Directory line in the right place :( Regards. On 3/7/07, thomas Armstrong [EMAIL PROTECTED] wrote: Hi, Using Apache 2.0.59 on Linux, I try to install a ScriptAlias. My DocumentRoot is '/home/project/web', and the ScriptAlias directive within httpd.conf is: - ScriptAlias /videos/ /home/project/modules/videos/web/ Directory /home/project/modules/ AddHandler application/x-httpd-php .php AddHandler text/css css /Directory - 'http://foo/videos/test.php' works ok, but 'http://foo/videos/test.css' doesn't. I get a '500 Internal Server Error', and browsing the error log: - [Wed Mar 07 04:58:55 2007] [error] [client c4e:d008:f82f:8ebf:307f:d300:a00:0] (8)Exec format error: exec of '/home/project/modules/videos/web/test.css' failed [Wed Mar 07 04:58:55 2007] [error] [client c4e:d008:f82f:8ebf:307f:d300:a00:0] Premature end of script headers: test.css - I chmoded 777 all the '/home/project/modules/videos/' directory. What am I doing wrong? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] attempt to invoke directory as script error when accessing root directory
Hi, Using Apache 2.0.59 on Linux, I try to install a ScriptAlias. My DocumentRoot is '/home/project/web', and the ScriptAlias directive within httpd.conf is: - ScriptAlias /videos/ /home/project/modules/videos/web/ Directory /home/project/modules/ AddHandler application/x-httpd-php .php AddHandler text/css css DirectoryIndex index.php /Directory - 'http://foo/videos/index.php' works ok, but if I access 'http://foo/videos/', I get a 403 Forbidden error, and browsing the error log: - [Wed Mar 07 04:37:02 2007] [error] [client ac74:d008:f82f:8abf:306f:d300:a00:0] attempt to invoke directory as script: /home/project/modules/videos/web/ - I chmoded 777 all the '/home/project/modules/videos/' directory. What am I doing wrong? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Trying to create a RewriteRule with a ScriptAlias
Hi. Using Apache 2.0.59, I want to create a new RewriteRule outside the DocumentRoot and modified my 'httpd.conf': -- VirtualHost mydomain DocumentRoot /home/project/web ServerName mydomain ScriptAlias /foo/ /home/project/modules/foo/web Directory /home/project/modules/ AddHandler application/x-httpd-php .php RewriteEngine on RewriteRule /foo/show/(.*) /bloggersnet/show.php?id=$1 [L,QSA] /Directory Directory /home/project/web /Directory /VirtualHost --- But when accessing 'http://mydomain/foo/show/5' I get a 404 error message ('http://mydomain/foo/show.php?id=5' works ok). What am I doing wrong? Thank you very much - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Does AllowOverride All damage Apache performance?
Hi. One colleague claims that if we set AllowOverride All within our httpd.conf, the performance of Apache (we use 2.0.59) is damaged. Is this true? Any suggestion is welcome. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] (8)Exec format error: exec of 'test.php' failed when ScriptAlias
Easier (within httpd.conf): Directory /home/project/modules/ AddHandler application/x-httpd-php .php /Directory --- Thank you very much anyway! On 2/22/07, Eric Covener [EMAIL PROTECTED] wrote: On 2/22/07, thomas Armstrong [EMAIL PROTECTED] wrote: 51a8:1409:18d7:afbf:20df:9300:a00:0] (8)Exec format error: exec of '/home/project/modules/videos/web/test.php' failed Perhaps you need a shebang (!#/usr/bin...) line at the top of the PHP script so the interpreter can be found? -- Eric Covener [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Re: Mess with symbolic links, directory owners and 403 Forbidden error
Fixed. I changed /var/www/mydomain/dir/common_images/ owner to 'apache.apache' and it works now. Thank you very much, anyway :) On 2/2/07, thomas Armstrong [EMAIL PROTECTED] wrote: Hi. Using Apache 2.0.51, I've got a VirtualHost 'mydomain.com' mounted on: '/var/www/mydomain/' Within this directory, I've got another directory ('test'), and within it one symbolic link: /var/www/mydomain/test/images - /var/www/mydomain/dir/common_images/ -- If I make 'images' owner be 'root.root' it works ok when accessing 'http://www.mydomain.com/test/images/foo.php', but if the owner is 'apache.apache' I get a '403 Forbidden error'. In both cases, 'foo.php' script's got execution permissions (also 'images' directory). How can I execute this script with 'apache.apache' owner? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Mess with symbolic links, directory owners and 403 Forbidden error
Hi. Using Apache 2.0.51, I've got a VirtualHost 'mydomain.com' mounted on: '/var/www/mydomain/' Within this directory, I've got another directory ('test'), and within it one symbolic link: /var/www/mydomain/test/images - /var/www/mydomain/dir/common_images/ -- If I make 'images' owner be 'root.root' it works ok when accessing 'http://www.mydomain.com/test/images/foo.php', but if the owner is 'apache.apache' I get a '403 Forbidden error'. In both cases, 'foo.php' script's got execution permissions (also 'images' directory). How can I execute this script with 'apache.apache' owner? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Can I use AddDefaultCharset on Apache 2.0?
Hi. I want to use UTF-8 on Apache 2.0.59, and I configured 'httpd.conf' to use: - AddDefaultCharset utf-8 - I don't know if it's correct, since I'm still suffering some special-chars problems (perhaps due to other issues). Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Re: Deny from foodomain.com... does it work?
Ooops... it's on the F* Manual :) http://httpd.apache.org/docs/2.0/mod/mod_access.html On 1/15/07, thomas Armstrong [EMAIL PROTECTED] wrote: Hi. Using Apache 2, I'm trying not to allow accesses from fodomain.com, but this domain changes its IP address each day. Can I use: Deny from foodomain.com ? I changed my httpd.conf but I don't wether it's working or not :( Regards, --T - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] WARNING: APR not found error (but I compiled with '--with-apr')
Hi. I compiled from sources Apache 2.0.59 with APR 0.9.13 ./configure --prefix=/usr/local/httpd --enable-so --enable-modules=all --with-apr=/usr/local/apr-httpd/bin/apr-config --with-apr-util=/usr/local/apr-util-httpd/bin/apu-config It works ok aparently, but I'm now trying to compile subversion 1.4.2: []# ./configure --with-apxs=/usr/local/httpd/bin/apxs And I get this error message: --- checking for APR... no configure: WARNING: APR not found The Apache Portable Runtime (APR) library cannot be found. Please install APR on this system and supply the appropriate --with-apr option to 'configure' --- What am I doing wrong? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] How not to generate error_log
Hi Stefan. It works! Thank you very much! On 12/21/06, Stefan Schneider [EMAIL PROTECTED] wrote: Hi Thomas, Using Apache 2.0.59 on Linux FC6, I'd like not to generate error_log ErrorLog /dev/null Does the trick here :) Cheers, Stefan - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] WARNING: APR not found error (but I compiled with '--with-apr')
Yep, Sander, it works! ./configure --with-apxs=/usr/local/httpd/bin/apxs --with-apr=/usr/local/apr-httpd/bin/apr-config --with-apr-util=/usr/local/apr-util-httpd/bin/apu-config On 12/21/06, Sander Temme [EMAIL PROTECTED] wrote: On Dec 21, 2006, at 4:57 AM, thomas Armstrong wrote: I compiled from sources Apache 2.0.59 with APR 0.9.13 ./configure --prefix=/usr/local/httpd --enable-so --enable-modules=all --with-apr=/usr/local/apr-httpd/bin/apr-config --with-apr-util=/usr/local/apr-util-httpd/bin/apu-config It works ok aparently, but I'm now trying to compile subversion 1.4.2: []# ./configure --with-apxs=/usr/local/httpd/bin/apxs You need to also pass --with-apr and --with-apr-util to Subversion, and point them to your APR installation. There's more to Subversion than the Apache module. The module will get built with the help of apxs, but the build system for the other programs needs itself access to APR. And if that cannot be found in a standard location, you'll error out and have to explicitly point to it. S. -- [EMAIL PROTECTED]http://www.temme.net/sander/ PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] mod_dav_svn.so is garbled - perhaps this is not an Apache module DSO?
Mmm.. I don't know, Joshua. I installed it by using Yum: []# yum install mod_dav_svn I suppose I could get the right version if I build it from sources, right? Thank you very much, --Thomas On 12/20/06, Joshua Slive [EMAIL PROTECTED] wrote: On 12/20/06, thomas Armstrong [EMAIL PROTECTED] wrote: Hi. Using Apache 2.0.59 on Linux FC6, I want to install 'mod_dav_svn'. I've got: /usr/lib/httpd/modules/mod_dav_svn.so So I inserted within 'httpd.conf': LoadModule dav_svn_module /usr/lib/httpd/modules/mod_dav_svn.so But I get this error message when restarting Apache: -- API module structure `dav_svn_module' in file /usr/lib/httpd/modules/mod_dav_svn.so is garbled - perhaps this is not an Apache module DSO? - Any clue? Thank you very much. Where did mod_dav_svn.so come from? Are you sure it is for the right version of apache? Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] mod_dav_svn.so is garbled - perhaps this is not an Apache module DSO?
where can I find the mod_dav_svn.so for FC6? On 12/20/06, Richard de Vries [EMAIL PROTECTED] wrote: Or perhaps this .so got pulled from a different OS? It's been a while, but I think I got a similiar error when I accidentely tried using a .so compiled for linux on a solaris box. (Don't ask how this happened ... long story!) --- Joshua Slive [EMAIL PROTECTED] wrote: Where did mod_dav_svn.so come from? Are you sure it is for the right version of apache? Joshua. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] mod_dav_svn.so is garbled - perhaps this is not an Apache module DSO?
[]# yum info mod_dav_svn Name : mod_dav_svn Arch : i386 Version: 1.4.2 Release: 2.fc6 Size : 135 k Repo : installed - On 12/20/06, thomas Armstrong [EMAIL PROTECTED] wrote: where can I find the mod_dav_svn.so for FC6? On 12/20/06, Richard de Vries [EMAIL PROTECTED] wrote: Or perhaps this .so got pulled from a different OS? It's been a while, but I think I got a similiar error when I accidentely tried using a .so compiled for linux on a solaris box. (Don't ask how this happened ... long story!) --- Joshua Slive [EMAIL PROTECTED] wrote: Where did mod_dav_svn.so come from? Are you sure it is for the right version of apache? Joshua. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 'mydomain.com' doesn't work ('www.mydomain.com' does)
Hi. Working with Apache 2 on Linux, I'm trying to make server accept also 'mydomain.com' petitions (www.mydomain.com works fine). Within my httdp.conf, I've got: - VirtualHost 102.100.x.x:80 ServerName mydomain.com:80 ServerAlias www.mydomain.com UseCanonicalName Off DocumentRoot /var/www/mydomain.com/httpdocs/www /VirtualHost - But it doesn't work: when typing 'mydomain.com' on my browser, I get one blank webpage (not a Server not found message). I'd like to know where http petitions are launching (in which local directory). Any suggestion? Thank you very much and happy holidays. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Where are Apache start|stop logs?
Hi. Using Apache 2.0 on Linux, it doesn't start, and I'd like to find the start|stop logs. I want to browse start logs, not access logs. Apache is installed at '/usr/local/httpd' Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Where are Apache start|stop logs?
Thanks. 2 min and 2 seconds! O_O On 11/28/06, Boyle Owen [EMAIL PROTECTED] wrote: -Original Message- From: thomas Armstrong [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 1:51 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Where are Apache start|stop logs? Hi. Using Apache 2.0 on Linux, it doesn't start, and I'd like to find the start|stop logs. I want to browse start logs, not access logs. Apache is installed at '/usr/local/httpd' It's in the error log... Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Using Edge Side Includes (ESI) with Apache
Hi Nick. Thank you very much for your answer. So what's the way to implement ESI-Akanai on my webserver? By using PHP headers? I've got no idea :( Regards, --T On 11/7/06, Nick Kew [EMAIL PROTECTED] wrote: On Tue, 7 Nov 2006 18:25:34 +0100 thomas Armstrong [EMAIL PROTECTED] wrote: Hi. Using Apache 2, I'm trying to work with Edge Side Includes (ESI) in order to Akamai my webpages: http://www.akamai.com/html/support/esi.html Does anybody know any module for Apache to execute this ESI markup language? Yes and no. I wrote an ESI parser to run under the first experimental version of mod_xmlns in 2003. That didn't include ESI caching, basically because when I looked at the spec, I got too disgusted at the way they'd broken standard HTTP caching. But it hasn't been maintained. Basically, I'm not convinced of the value of ESI, and switched my own efforts in that field to mod_publisher. People ask about ESI on the lists from time to time, but noone seems serious enough to sponsor me to update it. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Using Edge Side Includes (ESI) with Apache
Hi. Using Apache 2, I'm trying to work with Edge Side Includes (ESI) in order to Akamai my webpages: http://www.akamai.com/html/support/esi.html Does anybody know any module for Apache to execute this ESI markup language? Thank you very much, --T - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] logrotate doesn't create *log.1
Hi Working with Apache 2.0.52 on Linux, I created this logrotate configuration file: --- /usr/local/httpd/logs/*log { missingok notifempty sharedscripts postrotate /bin/kill -USR1 `cat /usr/local/httpd/logs/httpd.pid 2/dev/null` 2 /dev/null || true endscript } -- I executed '/usr/sbin/logrotate -v /etc/logrotate.d/httpd' and I get this kind of messages: --- renaming /usr/local/httpd/logs/access_log to /usr/local/httpd/logs/access_log.1 disposeName will be /usr/local/httpd/logs/access_log.1 removing old log /usr/local/httpd/logs/access_log.1 rotating log /usr/local/httpd/logs/blog_eitb-access_log, log-rotateCount is 0 However, '/usr/local/httpd/logs/access_log.1' doesn't exist, and '/usr/local/httpd/logs/access_log' is empty! Must I 'chmod a+w' /usr/local/httpd/logs/ directory? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache Memory Leak in MPM 'worker.c'
Hi. Just found this: http://www.securitytracker.com/alerts/2005/Oct/1015093.html A vulnerability was reported in the Apache httpd server (version 2.x). A remote user may be able to deny service. In certain situations after an aborted connection, a remote user can trigger a memory leak in some Multi-Processing Module code. The flaw resides in 'server/mpm/worker/worker.c'. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Graceful restart requested, doing restart
Hi. Using Apache/2.0.52 (Fedora), it crashes suddenly and I must restart it. I've found this error message on '/var/log/httpd/error_log': [Sat Oct 08 02:01:57 2005] [notice] Graceful restart requested, doing restart [Sat Oct 08 02:02:00 2005] [notice] Digest: generating secret for digest authentication ... [Sat Oct 08 02:02:00 2005] [notice] Digest: done [Sat Oct 08 02:02:00 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Sat Oct 08 02:02:00 2005] [notice] LDAP: SSL support unavailable [Sat Oct 08 02:02:01 2005] [notice] mod_python: Creating 4 session mutexes based on 180 max processes and 0 max threads. [Sat Oct 08 02:02:01 2005] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations -- What's the meaning of this messages? I DID NOT restart my Apache server at 02:00h in the night. :? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]