Skip to content

Instantly share code, notes, and snippets.

View udibagas's full-sized avatar

udibagas udibagas

View GitHub Profile
@udibagas
udibagas / moodle-nginx-config
Created July 9, 2018 09:53 — forked from jeffersonmartin/moodle-nginx-config
Nginx Config for Moodle (with proper rewrite/paths)
server {
listen 80;
server_name learn.mydomain.com;
return 301 https://learn.mydomain.com$request_uri;
}
server {
listen 443 ssl;
server_name learn.mydomain.com;
@udibagas
udibagas / Dockerfile
Last active April 2, 2018 03:06 — forked from neonxp/Dockerfile
Docker for PHP 5.3 project
FROM ubuntu:12.04
MAINTAINER Alexander Kiryukhin <alexander@kiryukhin.su>
RUN apt-get update
RUN apt-get -y upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install apache2 libapache2-mod-php5 php5-mysql php5-sybase php5-gd php-pear php-apc php5-curl curl lynx-cur php5-xdebug php5-memcached memcached wget
RUN a2enmod php5
<?php
/**
* Controller is the customized base controller class.
* All controller classes for this application should extend from this base class.
*/
class RestController extends CController
{
/**
* @var string the default layout for the controller view. Defaults to '//layouts/column1',
* meaning using a single column layout. See 'protected/views/layouts/column1.php'.