Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server.modules += (
- "mod_access",
- "mod_alias",
- "mod_compress",
- "mod_redirect",
- "mod_rewrite",
- "mod_setenv",
- "mod_fastcgi"
- )
- server.document-root = "/usr/local/sbin/www"
- server.upload-dirs = ( "/usr/local/sbin/www/uploads" )
- server.errorlog = "/var/log/lighttpd_error.log"
- server.pid-file = "/var/run/lighttpd.pid"
- server.max-request-size = 2097152
- server.network-backend = "writev"
- #
- # Redirect to public folder
- #
- url.redirect = ("^/$" => "/myapp/public" )
- index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
- url.access-deny = ( "~", ".inc" )
- static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
- compress.cache-dir = "/var/cache/lighttpd/compress/"
- compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
- # default listening port for IPv6 falls back to the IPv4 port
- ## Use ipv6 if available
- #include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
- include_shell "/usr/share/lighttpd/create-mime.assign.pl"
- include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
- #
- # PHP CGI Configuration
- #
- fastcgi.server = (".php" => ((
- "bin-path" => "/usr/bin/php-cgi",
- "socket" => "/tmp/php.socket",
- "bin-environment" => (
- "PATH" => env.PATH,
- "MYAPP_HOME" => env.MYAPP_HOME,
- "LD_LIBRARY_PATH" => env.LD_LIBRARY_PATH
- )
- ))
- )
- #
- # Set environment variables
- #
- setenv.add-environment = ("PATH" => env.PATH,
- "MYAPP_HOME" => env.MYAPP_HOME,
- "LD_LIBRARY_PATH" => env.LD_LIBRARY_PATH
- )
- #
- # Rewrite rules
- #
- url.rewrite-if-not-file = (
- "^([a-zA-Z0-9/-_]+).?([a-zA-Z]+)?$" => "/myapp/public/index.php?url=$1&extension=$2",
- "^([a-zA-Z0-9/-_]+)??(.+)?$" => "/myapp/public/index.php?url=$1&$2")
- #
- # Mimetype assign
- #
- mimetype.assign += ( ".html" => "text/html",
- ".txt" => "text/plain",
- ".jpg" => "image/jpeg",
- ".png" => "image/png",
- ".css" => "text/css",
- ".js" => "text/javascript"
- )
- <!DOCTYPE html>
- <html lang="en-us">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>Traansit AEI RTU</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- </head>
- <span><base href="/myapp/public/"><!-- [if lte IE 6]></base><![endif]-->
- <link rel="stylesheet" type="text/css" media="all" href="css/bootstrap.min.css">
- <link rel="stylesheet" type="text/css" media="all" href="css/traansit.bootstrap-datetimepicker.css">
- <link rel="stylesheet" type="text/css" media="all" href="DataTables/datatables.min.css">
- <script type="text/javascript" charset="UTF-8" src="js/jquery-2.1.4.min.js"></script>
- <script type="text/javascript" charset="UTF-8" src="js/jquery-ui.min.js"></script>
- <script type="text/javascript" charset="UTF-8" src="js/bootstrap.min.js"></script>
- <script type="text/javascript" charset="UTF-8" src="js/moment-with-locales.min.js"></script>
- <script type="text/javascript" charset="UTF-8" src="DataTables/datatables.min.js"></script>
- </span>
- <body>
- <base href=/myapp/public/>
- <div class="row">
- <div class="col-md-12">
- <br />
- <div class="col-md-5 col-md-offset-1">
- <img src="img/my_logo_sm.jpg" />
- </div>
- <div class="col-md-5 text-right">
- <h3>MYAPP</h3>
- </div>
- </div>
- </div>
- <div class="container-fluid">
- <div id="dialogDiv"></div>
- <div class="row">
- <div class="col-md-6 col-md-offset-1">
- <div class="jumbotron" style="height: 470px">
- <h4>MY APPLICATION</h4>
- </div>
- </div>
- <div class="col-md-4">
- <div class="jumbotron" style="height: 470px">
- <h4>Logon:</h4>
- <br />
- <form method="post">
- <div class="form-group">
- <label>Username:</label>
- <input class="form-control" placeholder="Username" type="text" name="username">
- </div>
- <div class="form-group">
- <label>Password:</label>
- <input class="form-control" placeholder="Password" type="password" name="password">
- </div>
- <div class="form-group">
- <button class="btn btn-primary" type="submit" name="action" value="login">Submit</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- <footer></footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement