Questions tagged as 'virtualhost'

4
answers

Create VirtualHost on port 81

I have two Apaches installed for two versions of PHP (5 and 7), on port 80 and 81 respectively. I would like to create virtualhost for port 81 of apache The host file has this line: Host 127.0.0.1 projeto.dev 127.0.0.1...
asked by 07.06.2018 / 18:51
1
answer

What is the correct way to use wildcard DNS?

I need the Apache virtualhost of my server to meet the following rule: 1- If you are domain.com or www.domain.com, then display the content at /var/www/domain.com/home 2- If it is blog.domain.com, then it displays the content in /var/...
asked by 07.09.2014 / 07:12
1
answer

How to configure FuelPHP on ubuntu 16?

I need to "clone" a FuelPHP application, which runs in Lamp (linux) on the company server. Everything went smoothly on the first try, which was done on the client's local machine. Already this runs in Xampp with Win 10. But now that I'm...
asked by 06.01.2017 / 14:25
2
answers

How to define a variable in the configuration of a Virtual Host, to avoid repetition?

I always get annoyed when I see that my virtualhost ends up being configured like this: <VirtualHost :80> ServerName meusite.local ServerAlias www.meusite.local DocumentRoot /var/www/meusite/public ErrorLog /var/www/m...
asked by 10.08.2018 / 22:45
0
answers

How to configure Apache via command line?

I wonder if it is possible to configure Apache using command line (Terminal). So far, the best I can do is to run the command apachectl -S which returns me the settings, but that returned value is not very friendly. Is there any way to ge...
asked by 19.05.2015 / 18:14
1
answer

Host site in laravel [duplicate]

I have a project in Laravel. When I put my files to my hosting server and access the domain, it shows me the files and folders instead of redirecting me to the index. On my machine I create a virtualhost pointing to the public folder where...
asked by 05.02.2018 / 22:26
2
answers

I can not work with uri (routes) using virtual hosts

I created a virtual host using apache, the problem is that I can access the site in my localhost as follows: site.com To access my site in localhost this way I did the following in the / etc / hosts file: 127.0.0.1 site.com And I made...
asked by 15.09.2017 / 04:46
2
answers

How to mount a Basic VirtualHost to rewrite URLs in my project in Xampp htdocs

Following the proposed model in the link file itself <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "C:/xampp/htdocs/dummy-host.example.com" ServerName dummy-host.example.com ServerAlias ww...
asked by 25.05.2018 / 14:20
1
answer

How to use the "php_admin_value" flag in virtualhost through PHP-FPM in a specific Virtual Host?

I decided to swap Apache2Handler with PHP-FPM on my server. After this change, I tried to run sudo apache2ctl configtest and got the following error:    AH00526: Syntax error on line 53 of /etc/apache2/apache2.conf :   Invalid co...
asked by 02.10.2017 / 16:34
1
answer

Automatically set docker port

I'm using docker to develop my web applications, but I realized that I need to run multiple projects at the same time on my machine. As these projects basically require the same containers, which are apache and mysql, whenever I start some proje...
asked by 21.06.2017 / 03:39