Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
afc
Worker
Worker



Joined: Aug 16, 2003
Posts: 107
Location: USA

PostPosted: Fri Apr 03, 2009 6:07 pm Reply with quote

Some file typed cant download right in firefox and maybe ie too, not sure i know nsn scripts has this problems for ie.

This fixed downloads of rar files from my site

NukeSecripts(tm) Network also recommends the use of FireFox Browser to browse our site.
Our files are stored as .tgz files. This is the short form of .tar.gz . If you have problems extracting our files change the .tgz to .tar.gz and you should have no more problems. If you are using Internet Explorer, it will try to force a .tar which is wrong.



found i fix for simple .htaccess change

Code:


Options All -Indexes
DirectoryIndex index.php index.htm index.html
FileETag none

# -------------------------------------------
# For faster load times.
# -------------------------------------------
<IfModule mod_expires.c>
   ExpiresActive On
   # ExpiresDefault A86400
   ExpiresByType image/x-icon "access plus 1 month"
   ExpiresByType application/x-javascript "access plus 5 minutes"
   ExpiresByType text/css "access plus 5 minutes"
   ExpiresByType image/gif "access plus 1 month"
   ExpiresByType image/png "access plus 1 month"
   ExpiresByType image/jpeg "access plus 1 month"
   ExpiresByType text/plain "access plus 15 minutes"
   ExpiresByType application/x-shockwave-flash "access plus 1 month"
   ExpiresByType video/x-flv "access plus 1 month"
   ExpiresByType application/pdf "access plus 1 month"
   ExpiresByType text/html "access plus 5 minutes"
   ExpiresByType text/javascript "access plus 5 minutes"
   ExpiresByType application/x-javascript "access plus 5 minutes"
</IfModule>



# -------------------------------------------
# For Correct file types.
# -------------------------------------------
# CSS
AddType text/css .css

# XHTML
AddType application/xhtml+xml .xhtml

# XML
AddType text/xml .xml

# SVG
AddType image/svg+xml .svg .svgz
AddEncoding x-gzip .svgz

# HTML
# Server Side Includes (SSI)
AddType text/html .shtml

# Active Server Pages
AddType text/html .asp

# Favicons
AddType image/vnd.microsoft.icon .ico

# Macromedia
AddType application/x-shockwave-flash .swf
AddType application/x-director .dir .dcr .dxr .fgd
AddType application/x-authorware-map .aam
AddType application/x-authorware-seg .aas
AddType application/x-authorware-bin .aab
AddType image/x-freehand .fh4 .fh5 .fh7 .fhc .fh

# Adobe PDF
AddType application/pdf .pdf

# Real
AddType application/vnd.rn-realmedia .rm
AddType audio/vnd.rn-realaudio .ra .ram
AddType video/vnd.rn-realvideo .rv
AddType audio/x-pn-realaudio-plugin .rpm

# Microsoft multimedia
AddType video/x-ms-asf .asf .asx
AddType audio/x-ms-wma .wma
AddType audio/x-ms-wax .wax
AddType video/x-ms-wmv .wmv
AddType video/x-ms-wvx .wvx
AddType video/x-ms-wm .wm
AddType video/x-ms-wmx .wmx
AddType application/x-ms-wmz .wmz
AddType application/x-ms-wmd .wmd

# MPEG
AddType audio/x-mpegurl .m3u

# Binary Compressed files and archives
AddType application/zip .zip
AddType application/x-gzip .gz
AddType application/x-gtar .gtar
AddType application/x-rar-compressed .rar
AddType application/octet-stream .dmg

# Java
AddType application/x-java-applet .class

# Quicktime movies
AddType video/quicktime .mov .qt

# XBM files
AddType image/x-xbitmap .xbm

# WAV files
AddType audio/x-wav .wav

# Bittorrent
AddType application/x-bittorrent .torrent


# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .ftaccess>
  deny from all
</Files>

<Files .staccess>
  deny from all
</Files>

# -----------------------------------------------------------------------------------------------------
# Leave this block commented out unless HTTPAuth is NOT available in your NukeSentinel(tm) Admin Panel.
# This code is mainly for use with CGI Authentication and most servers do not require it.
# -----------------------------------------------------------------------------------------------------
# <Files admin.php>
#    <Limit GET POST PUT>
#       require valid-user
#    </Limit>
#    AuthName "Restricted"
#    AuthType Basic
#   AuthUserFile /path/to/your/.staccess
# </Files>
# -----------------------------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------------------------

# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------


this should be included in next release
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sat Apr 04, 2009 2:00 am Reply with quote

Those lines are already in the .htaccess in RN 2.3.01 as standard. Wink
 
View user's profile Send private message
afc







PostPosted: Sat Apr 04, 2009 7:24 am Reply with quote

this is new

# -------------------------------------------
# For Correct file types.
# -------------------------------------------
# CSS
AddType text/css .css

# XHTML
AddType application/xhtml+xml .xhtml

# XML
AddType text/xml .xml

# SVG
AddType image/svg+xml .svg .svgz
AddEncoding x-gzip .svgz

# HTML
# Server Side Includes (SSI)
AddType text/html .shtml

# Active Server Pages
AddType text/html .asp

# Favicons
AddType image/vnd.microsoft.icon .ico

# Macromedia
AddType application/x-shockwave-flash .swf
AddType application/x-director .dir .dcr .dxr .fgd
AddType application/x-authorware-map .aam
AddType application/x-authorware-seg .aas
AddType application/x-authorware-bin .aab
AddType image/x-freehand .fh4 .fh5 .fh7 .fhc .fh

# Adobe PDF
AddType application/pdf .pdf

# Real
AddType application/vnd.rn-realmedia .rm
AddType audio/vnd.rn-realaudio .ra .ram
AddType video/vnd.rn-realvideo .rv
AddType audio/x-pn-realaudio-plugin .rpm

# Microsoft multimedia
AddType video/x-ms-asf .asf .asx
AddType audio/x-ms-wma .wma
AddType audio/x-ms-wax .wax
AddType video/x-ms-wmv .wmv
AddType video/x-ms-wvx .wvx
AddType video/x-ms-wm .wm
AddType video/x-ms-wmx .wmx
AddType application/x-ms-wmz .wmz
AddType application/x-ms-wmd .wmd

# MPEG
AddType audio/x-mpegurl .m3u

# Binary Compressed files and archives
AddType application/zip .zip
AddType application/x-gzip .gz
AddType application/x-gtar .gtar
AddType application/x-rar-compressed .rar
AddType application/octet-stream .dmg

# Java
AddType application/x-java-applet .class

# Quicktime movies
AddType video/quicktime .mov .qt

# XBM files
AddType image/x-xbitmap .xbm

# WAV files
AddType audio/x-wav .wav

# Bittorrent
AddType application/x-bittorrent .torrent
 
jakec







PostPosted: Sat Apr 04, 2009 8:09 am Reply with quote

Sorry, I didn't expand the code window.

I believe the problem may be caused by your php installation and those lines are not required on all servers. Therefore I would be hesitant about adding them as default.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Apr 04, 2009 8:26 am Reply with quote

I don't agree with adding them to .htaccess. It would be better to get these into the Apache configuration. If its in .htaccess, EVERY request to your web site will be forced to go through these actions... not something I would want to force on everyone as a default.

However, this list is very beneficial. If there was one or two specific ones causing issues and one can't get their host to fix, these can be used.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Sat Apr 04, 2009 12:19 pm Reply with quote

You can do this in Firefox. Close Firefox, locate your profile directory and the file mimetypes.rdf and you can edit it if necessary in any text editor.
 
View user's profile Send private message
jakec







PostPosted: Sun Apr 05, 2009 3:01 am Reply with quote

You really don't want your users having to do this to use your site, so like Montego said this should really be addressed in your Apache configuration.
 
dad7732







PostPosted: Sun Apr 05, 2009 6:14 am Reply with quote

Less savvy Firefox users can do as it is intended in TOOLS => Options => Applications as it was designed to do on the individual user desired settings. Just select an application and click on "Action" where there are several choices. Done server-wide is of course a valid choice as well. There are always alternatives to meet the demand.

Note: Say what ??? "Life Cycles Becoming CPU Cycles" ??
 
jakec







PostPosted: Sun Apr 05, 2009 8:07 am Reply with quote

You can also add these through cpanel. Wink
 
montego







PostPosted: Tue Apr 07, 2009 7:06 am Reply with quote

dad7732 wrote:
Note: Say what ??? "Life Cycles Becoming CPU Cycles" ??


Ah, you bumped passed the next rank post mark. You are now spending more on CPU Cycles than Life Cycles... you are being assimilated... Laughing
 
dad7732







PostPosted: Tue Apr 07, 2009 7:15 am Reply with quote

Hmmm, I'll have to consult "Q" about all this ... Very Happy
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©