Koozali.org: home of the SME Server

Adding Mime types to httpd.conf

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
Adding Mime types to httpd.conf
« on: February 20, 2006, 12:57:47 PM »
Currently working on a request from local community football club who would like to run there own server so i have suggested sme 7.0 when released has finished. They want to serve torrent files of the matches played. So they would like to see a test/production first

Using this installed to a ibay http://participatoryculture.org/broadcast/

or this http://www.blogtorrent.com/

I want to add a mime type torrent  to httpd.conf using the template fragments but unsure of the of the correct way to do this i have downloaded the sme 7 documentation but can not quite understand th the template fragment part to add this mime type.

A little help required please

Thanks in advance
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
Adding Mime types to httpd.conf
« Reply #1 on: February 20, 2006, 03:39:29 PM »
Is this the correct way to add mime type
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

pico 75AddType05.torrent

add this to the file
#add mime type torrent to httpd.conf
AddType application/x-bittorrent .torrent      #is there a return after this!

if this is correct what is the command to expand the template
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Adding Mime types to httpd.conf
« Reply #2 on: February 20, 2006, 05:20:35 PM »
Quote from: "stiperstones"
Is this the correct way to add mime type
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

pico 75AddType05.torrent

add this to the file
#add mime type torrent to httpd.conf
application/x-bittorrent .torrent #is there a return after this!


Doesn't matter - you can have as many returns as you like.

Quote

if this is correct what is the command to expand the template


expand-template /etc/httpd/conf/httpd.conf
/etc/rc7.d/S86httpd-e-smith restart

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
Adding Mime types to httpd.conf
« Reply #3 on: February 20, 2006, 05:25:09 PM »
Again thanks Charlie
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.