andreirailean / symbox Goto Github PK
View Code? Open in Web Editor NEWSymfony hosting helper
Symfony hosting helper
This is a helper for Symfony php development on localhost. In this guide, SYMBOX mainly means a Symfony install in a specific location. So if you have 10 sites configured, you have 10 symboxes. symbox.apache.conf file is a virtual host definition for Apache web server. Once the config file is installed and apache is restarted, new symboxes can be added without server restart. When this file is installed, your web server will respond to following urls: symbox.local [EXAMPLE].symbox.local where [EXAMPLE] is an individual symbox Subdomains are enabled for each symbox, so that EXAMPLE symbox is accessible by all of these domains: EXAMPLE.symbox.local TEST.EXAMPLE.symbox.local SUB.TEST.EXAMPLE.symbox.local SETUP: Load symbox.apache.conf into your apache. You should know how to do that already. You should be able to symlink it to the right location. Basic Directories: /www/symbox -- symbox container. location accessible by web server /www/symbox/.public -- default symfony install or static html files Symbox Directories: /www/symbox/EXAMPLE -- EXAMPLE symbox /www/symbox/ANOTHER -- ANOTHER symbox Tested with Symfony 1.4 Depends on Symfony being installed in lib/vendor/symfony/data/web/sf inside symbox We have a Symfony dependency only for /sf* urls. You can still use .htaccess files with this approach. You'll have to enable "RewriteBase /" because DOCUMENT_ROOT points to /www/symbox/.public. If you want to point a production domain to your symbox, like "www.example.com" you'll need to create another apache conf file, like you usually do. If you want to be able to serve symboxes from a machine other than your localhost you can either: - add a server alias like *symbox.your.company.domain - use a URL-based proxy tunnel so that *.symbox.example.com is taken from *.symbox.local on a symbox server NON-Symfony Applications ------------------------ You can use this approach to host non-symfony PHP applications as long as they obey the following rules: - web-visible code (like index.php) must be located in symbox' /web directory (/www/symbox/EXAMPLE/web) - .htaccess files need to be placed in /web directory as well - must not use /sf* urls (because they will fail as they are hardwired to symfony)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.