home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.linux.advocacy      Torvalds farts & fans know what he ate      165,424 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 165,412 of 165,424   
   vallor to Farley Flud   
   Re: Any Apache Experts?   
   06 Mar 26 22:34:53   
   
   34f50791   
   XPost: comp.os.linux.misc   
   From: vallor@vallor.earth   
      
   At Fri, 06 Mar 2026 16:30:45 +0000, Farley Flud  wrote:   
      
   > On Fri, 6 Mar 2026 14:11:07 -0000 (UTC), fregas wrote:   
   >   
   > >   
   > > Typically .cs files are csharp files O i assume you're doing some kind   
   > > of programming or wanting to show programming files, but not sure.   
   > >   
   > > What is it you're actually trying to accomplish?  Simply display source   
   > > code in your website?   
   > >   
   >   
   > These cs files are for the visitor to download to his machine and then   
   > load into his local software so as to duplicate the results that are   
   > shown on the website.   
   >   
   > But I have given up trying to solve this.   
   >   
   > Thanks to all for the advice.   
      
   I admire your patience -- you waited a whole 9 minutes for the   
   answer...   
      
   Anyway, it's part of the default Apache 2 configuration to treate   
   .cs files as a different language.   
      
   https://httpd.apache.org/docs/2.4/mod/mod_mime.html#addlanguage   
      
   # egrep "\.cs$" etc/apache2/*/*.conf   
   etc/apache2/mods-available/mime.conf:AddLanguage cs .cz .cs   
   etc/apache2/mods-enabled/mime.conf:AddLanguage cs .cz .cs   
      
    ...and there was nothing keeping you from looking up the docs   
   for this.   
      
   Anyway, tell your provider to remove that line from mods-available, and   
   it will work right.   
      
   Or better yet, get a vps on Digital Ocean, and assume control   
   of the whole server.  A tiny server is $6/mo.   
      
   --   
   -v System76 Thelio Mega v1.1 x86_64 Mem: 258G   
      OS: Linux 7.0.0-rc2 D: Mint 22.3 DE: Xfce 4.18 (X11)   
      NVIDIA GeForce RTX 3090Ti (24G) (580.126.18)   
      "Useless Invention: Camcorder with braile-encoded buttons."   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca