 |
|
 |
|
Next: IP shown instead of URL
|
| Author |
Message |
External

Since: May 26, 2004 Posts: 4
|
(Msg. 1) Posted: Wed May 26, 2004 7:23 pm
Post subject: .htaccess: why??? Archived from groups: alt>apache>configuration (more info?)
|
|
|
Hi. Sorry for my english, but I don't know it very well.
I have a problem with .htaccess.
My file .htaccess is this:
====BEGIN========
AddType text/plain .log
=====END=========
I made it because my apache web server (provider aruba) associate to .log
files the MIME type "application/octet-stream" (I've known it with a print
of the filetype) that is also the MIME type for .exe files. I want to force
this association and give to .log files the MIME type "text/plain". Infact,
I have a form mail (in php) where it's possible to attach only .log and .txt
files (and ABSOLUTELY NOT .exe files!).
I've tried also this:
====BEGIN========
<Files ~ "\.(log)$">
ForceType text/plain
</Files>
=====END=========
They both don't works, the MIME type of .log files remains the same
("application/octet-stream").
I'm gonna wrong, or it's only a web server problem?
Thanx
Banshee -Italy- >> Stay informed about: .htaccess: why??? |
|
| Back to top |
|
 |  |
External

Since: Jul 01, 2003 Posts: 411
|
(Msg. 2) Posted: Wed May 26, 2004 7:23 pm
Post subject: Re: .htaccess: why??? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Banshee wrote:
> Hi. Sorry for my english, but I don't know it very well.
>
> I have a problem with .htaccess.
> My file .htaccess is this:
>
> ====BEGIN========
> AddType text/plain .log
> =====END=========
>
> I made it because my apache web server (provider aruba) associate to .log
> files the MIME type "application/octet-stream" (I've known it with a print
> of the filetype) that is also the MIME type for .exe files. I want to force
> this association and give to .log files the MIME type "text/plain". Infact,
> I have a form mail (in php) where it's possible to attach only .log and .txt
> files (and ABSOLUTELY NOT .exe files!).
>
> I've tried also this:
>
> ====BEGIN========
> <Files ~ "\.(log)$">
> ForceType text/plain
> </Files>
> =====END=========
>
> They both don't works, the MIME type of .log files remains the same
> ("application/octet-stream").
> I'm gonna wrong, or it's only a web server problem?
Just a guess, but is AllowOverride set to allow .htaccess files in the
httpd.conf file for that directory?
<Directory /system/path/to/doc_root>
AllowOverride All
</Directory>
(Or something like that)
--
Justin Koivisto - spam.TakeThisOut@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess: why??? |
|
| Back to top |
|
 |  |
External

Since: May 26, 2004 Posts: 4
|
(Msg. 3) Posted: Wed May 26, 2004 8:00 pm
Post subject: Re: .htaccess: why??? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Justin Koivisto"
> Just a guess, but is AllowOverride set to allow .htaccess files in the
> httpd.conf file for that directory?
>
> <Directory /system/path/to/doc_root>
> AllowOverride All
> </Directory>
>
> (Or something like that)
>
I don't know, can I enter in this file? In my home directory, there isn't
it.
However, I used .htaccess (with .htpasswd) in my Downloads directory to
protect it, and it works perfectly.
> Banshee wrote:
>
> > Hi. Sorry for my english, but I don't know it very well.
> >
> > I have a problem with .htaccess.
> > My file .htaccess is this:
> >
> > ====BEGIN========
> > AddType text/plain .log
> > =====END=========
> >
> > I made it because my apache web server (provider aruba) associate to
..log
> > files the MIME type "application/octet-stream" (I've known it with a
print
> > of the filetype) that is also the MIME type for .exe files. I want to
force
> > this association and give to .log files the MIME type "text/plain".
Infact,
> > I have a form mail (in php) where it's possible to attach only .log and
..txt
> > files (and ABSOLUTELY NOT .exe files!).
> >
> > I've tried also this:
> >
> > ====BEGIN========
> > <Files ~ "\.(log)$">
> > ForceType text/plain
> > </Files>
> > =====END=========
> >
> > They both don't works, the MIME type of .log files remains the same
> > ("application/octet-stream").
> > I'm gonna wrong, or it's only a web server problem?
>
> --<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess: why??? |
|
| Back to top |
|
 |  |
External

Since: May 26, 2004 Posts: 5
|
(Msg. 4) Posted: Wed May 26, 2004 8:00 pm
Post subject: Re: .htaccess: why??? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Banshee" <ban5heeNOSPAM DeleteThis @tiscali.it> ha scritto nel messaggio
news:c92b6q$gls$1@lacerta.tiscalinet.it
> "Justin Koivisto"
>> Just a guess, but is AllowOverride set to allow .htaccess files in
>> the httpd.conf file for that directory?
>>
>> <Directory /system/path/to/doc_root>
>> AllowOverride All
>> </Directory>
>>
>> (Or something like that)
>>
>
> I don't know, can I enter in this file? In my home directory, there
> isn't it.
> However, I used .htaccess (with .htpasswd) in my Downloads directory
> to protect it, and it works perfectly.
No, it's a apache configuration file.
you have to ask to your site administrator
-----
No, e' un file di configurazione di apache
devi chiedere al tuo amministratore!
--
Francesco
Togli l'antispam per rispondere in privato<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess: why??? |
|
| Back to top |
|
 |  |
External

Since: May 26, 2004 Posts: 4
|
(Msg. 5) Posted: Wed May 26, 2004 8:42 pm
Post subject: Re: .htaccess: why??? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Francesco"
> No, it's a apache configuration file.
> you have to ask to your site administrator
>
> -----
>
> No, e' un file di configurazione di apache
> devi chiedere al tuo amministratore!
>
>
But in the aruba's guide there is a page in wich they explain how to use
AddType (http://vademecum.aruba.it/start/linux/mime.htm)
Then, I suppose that there is the right configuration to make it works!!!
Is my code right?
----
Ma nella giuda di aruba c'è una pagina nella quale spiegano come usare
AddType
Quindi, penso che la configurazione sia quella adatta a farlo funzionare!!!
Il mio codice è giusto? (Insomma, non è che ho sbagliato io qualcosa?)
Banshee -Italy-
> --
> Francesco
>
> Togli l'antispam per rispondere in privato
>
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess: why??? |
|
| Back to top |
|
 |  |
External

Since: May 26, 2004 Posts: 5
|
(Msg. 6) Posted: Wed May 26, 2004 9:12 pm
Post subject: Re: .htaccess: why??? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Banshee" <ban5heeNOSPAM.DeleteThis@tiscali.it> ha scritto nel messaggio
news:c92dk5$iq0$1@lacerta.tiscalinet.it
> "Francesco"
>> No, it's a apache configuration file.
>> you have to ask to your site administrator
>>
>> -----
>>
>> No, e' un file di configurazione di apache
>> devi chiedere al tuo amministratore!
>>
>>
> But in the aruba's guide there is a page in wich they explain how to
> use AddType (http://vademecum.aruba.it/start/linux/mime.htm)
> Then, I suppose that there is the right configuration to make it
> works!!!
>
> Is my code right?
well I read that page.
your code is right.
are u sure you upload the filie in ascii and you put the dot before the name
of the file ?
--
Francesco
Togli l'antispam per rispondere in privato<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess: why??? |
|
| Back to top |
|
 |  |
External

Since: Mar 29, 2004 Posts: 672
|
(Msg. 7) Posted: Thu May 27, 2004 12:52 am
Post subject: Re: .htaccess: why??? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Banshee" <ban5heeNOSPAM RemoveThis @tiscali.it> schreef in bericht
news:c92b6q$gls$1@lacerta.tiscalinet.it...
> > Just a guess, but is AllowOverride set to allow .htaccess files in the
> > httpd.conf file for that directory?
> > <Directory /system/path/to/doc_root>
> > AllowOverride All
> > </Directory>
> I don't know, can I enter in this file? In my home directory, there isn't
> it.
> However, I used .htaccess (with .htpasswd) in my Downloads directory to
> protect it, and it works perfectly.
Unfortunately, the use of AuthUserFile and ForceType can be enabled
seperately.
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride</a>
HansH<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess: why??? |
|
| Back to top |
|
 |  |
External

Since: May 26, 2004 Posts: 4
|
(Msg. 8) Posted: Thu May 27, 2004 2:21 pm
Post subject: Re: .htaccess: why??? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
> well I read that page.
> your code is right.
> are u sure you upload the filie in ascii and you put the dot before the
name
> of the file ?
>
Yes, I'm sure. Log files remain "application/octet-stream".
I think that I have to ask my provider, because I don't wrong anything!!!
> --
> Francesco
>
> Togli l'antispam per rispondere in privato
>
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: .htaccess: why??? |
|
| Back to top |
|
 |  |
| Related Topics: | htaccess & SSL - I would like to control with htaccess the acces for one directory of my site. But I don't know how to configure my htaccess to limit the access from "https://". Thank's Edz ...
htaccess with SQL - Hi, I have a problem (well more than one), I want to use htaccess to allow users in an MySQL database to gain access to the specified directory only when there authorization in the database is good. e.g. person1 when with authorization level 1 gains no..
HTAccess - Hi NG! I have defined by HTAccess to show my own 404 Errorfile if a file can't found on my Server. The problem is that everytime this file is loaded, even if only picture is missing. How can i say that the Error-HTML is only shown if a HTML File is..
.htaccess - Hello Guys, I try desesperatly to make .htaccess run. It runs when files are put on the root, but not with sub-directories. My ".htaccess" : -------------------------------------------------------------------- Options +FollowSymlinks RewriteEng...
HTACCESS - Hi All! I am very new with Apache and for now I am running apache localy. http://127.0.0.1 gets my index up and running! So that works fine! What I am trying to do is to resolve a name like http://thatsme.lan and make a subdirectory like.. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|