All Projects → mickgeek → Yii2 Advanced One Domain Config

mickgeek / Yii2 Advanced One Domain Config

A template configuration without separation on the frontend and backend parts on different domains.

Projects that are alternatives of or similar to Yii2 Advanced One Domain Config

Rare
Fast, realtime regex-extraction, and aggregation into common formats such as histograms, numerical summaries, tables, and more!
Stars: ✭ 76 (-70.54%)
Mutual labels:  nginx, apache
Serverpilot Letsencrypt
Automate the installation of Let's Encrypt SSL on the free plan of ServerPilot
Stars: ✭ 129 (-50%)
Mutual labels:  nginx, apache
Dockerweb
A docker-powered bash script for shared web hosting management. The ultimate Docker LAMP/LEMP Stack.
Stars: ✭ 89 (-65.5%)
Mutual labels:  nginx, apache
Docs4dev
后端开发常用框架文档及中文翻译,包含 Spring 系列文档(Spring, Spring Boot, Spring Cloud, Spring Security, Spring Session),大数据(Apache Hive, HBase, Apache Flume),日志(Log4j2, Logback),Http Server(NGINX,Apache),Python,数据库(OpenTSDB,MySQL,PostgreSQL)等最新官方文档以及对应的中文翻译。
Stars: ✭ 974 (+277.52%)
Mutual labels:  nginx, apache
Guacamole Install Rhel 7
Apache Guacamole installation bash script for RHEL 7 and CentOS 7 including options for Nginx, HTTPS, SSL, LDAP, Let's Encrypt certificates and more
Stars: ✭ 174 (-32.56%)
Mutual labels:  nginx, apache
Ansible Config encoder filters
Ansible role used to deliver the Config Encoder Filters.
Stars: ✭ 48 (-81.4%)
Mutual labels:  nginx, apache
Newznab Tmux
Laravel based usenet indexer
Stars: ✭ 127 (-50.78%)
Mutual labels:  nginx, apache
Medusa
🐈Medusa是一个红队武器库平台,目前包括扫描功能(200+个漏洞)、XSS平台、协同平台、CVE监控等功能,持续开发中 http://medusa.ascotbe.com
Stars: ✭ 796 (+208.53%)
Mutual labels:  nginx, apache
Htconvert
Convert .htaccess redirects to nginx.conf redirects
Stars: ✭ 171 (-33.72%)
Mutual labels:  nginx, apache
Developer
Gameserver, Voiceserver, Rootserver Webinterface
Stars: ✭ 161 (-37.6%)
Mutual labels:  nginx, apache
Netkiller.github.io
Netkiller Free ebook - 免费电子书
Stars: ✭ 861 (+233.72%)
Mutual labels:  nginx, apache
Docker Php
🐳 Docker For PHP developers - Docker images with PHP, Nginx, OpenLiteSpeed, Apache, Lighttpd, and Alpine
Stars: ✭ 236 (-8.53%)
Mutual labels:  nginx, apache
Docker Testing
Stars: ✭ 18 (-93.02%)
Mutual labels:  nginx, apache
Fail2ban.webexploits
This custom Fail2Ban filter and jail will deal with all scans for common Wordpress, Joomla and other Web Exploits being scanned for by automated bots and those seeking to find exploitable web sites.
Stars: ✭ 67 (-74.03%)
Mutual labels:  nginx, apache
Ansible Role Htpasswd
Ansible Role - htpasswd
Stars: ✭ 17 (-93.41%)
Mutual labels:  nginx, apache
Country Ip Blocks
CIDR country-level IP data, straight from the Regional Internet Registries, updated hourly.
Stars: ✭ 100 (-61.24%)
Mutual labels:  nginx, apache
Docker Alpine
Docker containers running Alpine Linux and s6 for process management. Solid, reliable containers.
Stars: ✭ 574 (+122.48%)
Mutual labels:  nginx, apache
Engintron
Engintron for cPanel/WHM is the easiest way to integrate Nginx on your cPanel/WHM server. Engintron will improve the performance & web serving capacity of your server, while reducing CPU/RAM load at the same time, by installing & configuring the popular Nginx webserver to act as a reverse caching proxy in front of Apache.
Stars: ✭ 587 (+127.52%)
Mutual labels:  nginx, apache
Owasp Mth3l3m3nt Framework
OWASP Mth3l3m3nt Framework is a penetration testing aiding tool and exploitation framework. It fosters a principle of attack the web using the web as well as pentest on the go through its responsive interface.
Stars: ✭ 139 (-46.12%)
Mutual labels:  nginx, apache
Goaccess
GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
Stars: ✭ 14,096 (+5363.57%)
Mutual labels:  nginx, apache

Yii 2 Advanced Application. One Domain Configuration

There are times when there is no need or no possibility to place the frontend and backend parts on different domains. Here are the instructions for configuration of the Apache or Nginx web servers for using multiple applications on a single domain.

Final frontend URL: http://advanced.local
Final backend URL: http://advanced.local/admin

Preparation

You need to make some changes in the configuration files of the applications according to the bundled advanced/frontend/config/main.php and advanced/backend/config/main.php files.

The next step is the adding two rules from the bundled advanced/frontend/web/robots.txt file to the content of your main robots.txt file.

Apache Configuration (.htaccess or VirtualHost)

Note: If you have a shared hosting or want to use .htaccess, simply copy the bundled advanced/.htaccess file into the root directory of your project.

The first thing to do is to execute the following command with enough permissions to make sure whether the mod_rewrite module is enabled:

[ -f /etc/apache2/mods-enabled/rewrite.load ] && echo "Found" || echo "Not Found"

If the Not Found message appears, just execute the a2enmod rewrite command and restart the Apache server.

Now you can use the configuration specified in the bundled vhosts/apache.conf file to set up a virtual host. But don't forget to replace advanced.local with an actual hostname and /path/to/advanced with an actual path.

Nginx Configuration

In this case, use only the configuration of the bundled vhosts/nginx.conf file. If you don't like use advanced.local as a hostname, change it. Also replace /path/to/advanced with the actual path to your project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].