joppot

コピペで絶対動く。説明を妥協しない

「 apache 」 一覧

How to define environment variables for each virtual host in apache 2.4 and use it in php

2017/03/15   -サーバ
 , ,

English 日本語 Abstract Hello everyone, It’s candle This time I’ll show you how to define environment variables for each virtualhost in apache 2.4 and use it in php For example, when you are developing with wordpress, you don’t want to put password or access key or anything else under the control of git. So, you can define it on apache and require it with getenv for use. Premise apache2.4 anything php project you have already built some kind of virtual host.

Set up subdomain for each directory using virtual host of apache 2.4 and Mac hosts

2017/03/12   -mac
 ,

English 日本語 Abstract Hello everybody, It’s candle. This time I will show you how to divide directories by subdomain with mac easily. For example, it is useful when such situation. If you are developing some wordpress project with apache, there are URL like the following. http://localhost:8080/workspace/alice_blog/index.html http://localhost:8080/workspace/tom_service/index.html It is the long URL. If you choose this article way, http://alice.localhost:8080/index.html http://tom.localhost:8080/index.html you can make the above URL. Premise mac apache2.4 Sample project


I work in the venture company as a CTO. I start to write program in University, first I learned java, C++ and PHP. In the company, I'm developing web services by Rails. I do like to automation.