Difference between revisions of "Web Hosting"

From Wiki | LUG@UCLA
Jump to: navigation, search
Line 2: Line 2:
  
 
If your username is <code>johndoe</code>, your web space can be found at [http://linux.ucla.edu/~johndoe <code>http://linux.ucla.edu/'''~johndoe'''</code>]
 
If your username is <code>johndoe</code>, your web space can be found at [http://linux.ucla.edu/~johndoe <code>http://linux.ucla.edu/'''~johndoe'''</code>]
 +
 +
== Hosting public Git repositories ==
 +
 +
$ cp -r /usr/share/gitweb ~/public_html/gitweb
 +
$ cd ~/public_html/gitweb
 +
$ cp /etc/gitweb.conf gitweb_config.perl
 +
 +
Now edit '''gitweb_config.perl''' and change the following configurations:
 +
* <code>$projectroot = "/home/<user>/public_html/repos/";</code> (be sure to change <user> to your username)
 +
* add this to the bottom: <code>@git_base_url_list = ("<nowiki>http://linux.ucla.edu/~<user>/repos</nowiki>");</code>
  
 
== Noteworthy files/profiles from former LUGers ==
 
== Noteworthy files/profiles from former LUGers ==

Revision as of 13:38, 3 November 2013

As a member of LUG@UCLA, you have been given a unix account on this server, and apache will serve your ~/public_html directory.

If your username is johndoe, your web space can be found at http://linux.ucla.edu/~johndoe

Hosting public Git repositories

$ cp -r /usr/share/gitweb ~/public_html/gitweb
$ cd ~/public_html/gitweb
$ cp /etc/gitweb.conf gitweb_config.perl

Now edit gitweb_config.perl and change the following configurations:

  • $projectroot = "/home/<user>/public_html/repos/"; (be sure to change <user> to your username)
  • add this to the bottom: @git_base_url_list = ("http://linux.ucla.edu/~<user>/repos");

Noteworthy files/profiles from former LUGers