You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Harrell, Roger" <rj...@bechtel.com> on 2004/02/12 23:59:26 UTC

[users@httpd] ForceType directive - dynamic pages and URLs

In previous versions of Apache I have used the ForceType directive under a
<Location> or <Files> container to enable URLS with no special characters
for dynamically generated pages. example in the access.conf file I would
have
<Location /scriptfile>
ForceType application/x-httpd-php
</Location>

Then I would have a file "scriptfile" in my document root that was a PHP
script. IF someone requested:
http://www.domain.com/scriptfile/var1/var2

The "scriptfile" script would run and generate the proper page. 

The same thing worked in a .htaccess file with
<Files scriptfile>
ForceType application/x-httpd-php
<Files>

Now I can't seem to get it to work at all. The ForceType seems to work when
I request
http://www.domain.com/scriptfile

but if I request
http://www.domain.com/scriptfile/var1/var2 
I get a page not found error.

How do I do this in Apache 2.x?

Thanks, 
Roger

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache2 crashing at the same time everyday

Posted by Matthew Shannon <ma...@paycom.net>.
Look into your cron files and in your cron logs, what happens at 6:31am
every day?

Cheers,
-m

On Thu, 2004-02-12 at 15:29, Henry wrote:
> I have a webserver running Slackware Linux and Apache2.  For the most part, things are running very smoothly. Every couple of days, sometimes two days in a row (like today and yesterday),  Apache is crashing at 6:31AM Pacific time.   But sometimes it will go a few days straight without crashing.   There is no indication in the error_log - it just crashes.   It's done this about 10 times at 6:31AM - but yesterday it happened at 6:26AM (first time NOT at 6:31AM).  Sometimes, I'm able to restart it, but today I had to reboot the server to get it running again. This is the only clue I get in the error_log file:
> 
> [Thu Feb 12 06:37:50 2004] [warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
> 
> I did see one item in the FAQ/docs that talked about Apache crashing during log rotation, but that was for an old version of RedHat - which would cause a a SIGHUP error in the logs, but I don't think that's what's happening here. 
> 
>    I realize it is difficult to diagnose this problem without more info, but where can I start looking for clues as to why it is crashing?
> 
> Thanks,
> 
> -Hank
> 
> ---------------------------------------------------------------------
> 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: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Apache2 crashing at the same time everyday

Posted by Henry <he...@ix.netcom.com>.
I have a webserver running Slackware Linux and Apache2.  For the most part, things are running very smoothly. Every couple of days, sometimes two days in a row (like today and yesterday),  Apache is crashing at 6:31AM Pacific time.   But sometimes it will go a few days straight without crashing.   There is no indication in the error_log - it just crashes.   It's done this about 10 times at 6:31AM - but yesterday it happened at 6:26AM (first time NOT at 6:31AM).  Sometimes, I'm able to restart it, but today I had to reboot the server to get it running again. This is the only clue I get in the error_log file:

[Thu Feb 12 06:37:50 2004] [warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

I did see one item in the FAQ/docs that talked about Apache crashing during log rotation, but that was for an old version of RedHat - which would cause a a SIGHUP error in the logs, but I don't think that's what's happening here. 

   I realize it is difficult to diagnose this problem without more info, but where can I start looking for clues as to why it is crashing?

Thanks,

-Hank

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org