• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Gitweb not displaying correctly apache MIME issue CentOS 6.4

September 19, 2013 by Sharad Chhetri Leave a Comment

While setting the new Git server with gitweb I saw this issue.Generally never seen before,here Gitweb page was not displaying correctly.

You can see the below given screenshot:

gitweb

While debugging the issue,it is found that the problem was with MIME for css and javascript.
To solve this issue ,I only approached to create a .htaccess file in Data Directory of gitweb.
In CentOS the gitweb directory I created inside /var/www/gitweb.

You have to add only these two lines in .htaccess

[root@localhost gitweb]# vi .htaccess 
AddType text/css .css
AddType text/javascript .js
[root@localhost gitweb]#

Now restart the apache once and clear the web browser cache also

/etc/init.d/httpd restart

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to install own git server with ssh and http access by using gitolite and gitweb in CentOS
  2. How to create own Git Server with Gitolite and Gitweb in Ubuntu
  3. How to install Magento 1.7.0.2 in linux, bug issue is also solved
  4. Find date of expiry and issue of SSL certificate with command
  5. Shareaholic Related Content Recommendations issue fixed in v7.0.3.3
  6. How to install apache webserver in CentOS and Red Hat
  7. Install pagespeed module ( mod_pagespeed ) on Apache Web Server : CentOS / RHEL
  8. Find installed and enabled apache module in Debian/Ubuntu
  9. How to install Apache Web Server on Ubuntu 14.04 LTS (Trusty Tahr)
  10. Access Control by host and ip address in Apache 2.4

Filed Under: Linux Tagged With: gitweb

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to encode and decode the strings with base64

Yum Error database disk image is malformed

Convert hyphen to underscore in between all filenames shell script

Change the default port number of ssh server

postgres database backup script using database user password inside

Nagios HTTP WARNING: HTTP/1.1 403 Forbidden

sed: -e expression #1, char 24: Invalid range end

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy