virtualhost

WAMP Virtualhost not working with Laravel instance

人走茶凉 提交于 2019-11-30 06:06:40
问题 I'm working on a Laravel project locally using WAMP 3.1.0 and everything was working correctly until there was a windows update today. When I go to my project I get an error page I followed this post WAMP Virtual Host not working but that didn't solve my problem. I've edited my C:\Windows\System32\drivers\etc\hosts file in admin mode which looks like this: 127.0.0.1 localhost ::1 localhost 127.0.0.1 test.dev ::1 test.dev 127.0.0.1 shoppingcart.dev ::1 shoppingcart.dev 127.0.0.1 gitproject.dev

error_log per Virtual Host?

送分小仙女□ 提交于 2019-11-30 05:51:19
问题 On one Linux Server running Apache and PHP 5, we have multiple Virtual Hosts with separate log files. We cannot seem to separate the php error_log between virtual hosts. Overriding this setting in the <Location> of the httpd.conf does not seem to do anything. Is there a way to have separate php error_logs for each Virtual Host? 回答1: To set the Apache ( not the PHP ) log, the easiest way to do this would be to do: <VirtualHost IP:Port> # Stuff, # More Stuff, ErrorLog /path/where/you/want/the

Apache 500 Internal Server Error on my virtual host [closed]

心不动则不痛 提交于 2019-11-30 05:39:57
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I have my web app projects located in a folder in /media/disk1/Projects. I want to serve them using an Apache virtualhost at http://lab/ . This is how I set up my virtual host: 1. Copied /etc/apache2/sites-available/default to /etc/apache2/sites-available/lab 2. Edited /etc/apache2/sites-available

Different VirtualHosts with the same port

老子叫甜甜 提交于 2019-11-30 04:52:37
I need to have two VirtualHosts with the same listen port for different projects and with different logs. Here's what I've got: <VirtualHost *:80> DocumentRoot /home/projects/smk ErrorLog /var/log/apache2/smk-error.log RedirectMatch ^/$ /cms </VirtualHost> <VirtualHost *:80> DocumentRoot /home/projects/smk/cms ErrorLog /var/log/apache2/smk-cms-error.log </VirtualHost> <VirtualHost *:80> DocumentRoot /home/projects/smk/deploy ErrorLog /var/log/apache2/smk-deploy-error.log </VirtualHost> Add different ServerName directive in all virtual hosts: <VirtualHost *:80> ServerName dev.localhost

Exclude an alias from virtualhost proxypass

半世苍凉 提交于 2019-11-30 00:09:06
I've following virtual host configuration. The desired result is: If someone requests http://test.myserver.com/myapp , apache serves him from /var/www/myapp And if http://test.myserver.com/ is requested, apache redirects it to port 8069. 2nd is working but 1st is not. Can someone help please! <VirtualHost *:80> ServerName test.myserver.com Alias /myapp /var/www/myapp <Directory /var/www/myapp> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> ProxyPass / http://localhost:8069/ ProxyPassReverse / http://localhost:8069/ </VirtualHost> This

Vagrant in production

折月煮酒 提交于 2019-11-29 22:52:45
I've been reading about Vagrant, and I find it quite useful for my development. I am currently managing a series of services (mail, web, LDAP, file sharing, etc.), and often one of these falls and needs a quick backup. Is it possible (and recommended) to use Vagrant for these purposes? So far I've virtual machines installed like real machines. I would also like to know about an alternative to Vagrant which would allow me to setup a simple configuration file and put a virtual machine, for example, with Zimbra, and quickly have an alternate mail server, enable RabbitMQ, etc. Vagrant should be

Different folder as website subfolder

限于喜欢 提交于 2019-11-29 21:34:43
I need some help with URL rewriting. The case is similar with this one . I have a working Zend Framework site. Now I must add a blog in Wordpress (also working). I've chosen not to indulge in ZF controller-/action-/route-making; I've seen a couple of tutorials about this and I consider them too much for a "plain" redirection. Now, about that "redirection"... This is how it should look like: www.site.com (points to /var/www/zf ) www.site.com/blog (points to /var/www/wp ) I know that I should stop www.site.com/blog to enter ZF's innards and I'm currently doing this with RewriteRule ^blog - [NC,L

Apache error: _default_ virtualhost overlap on port 443

三世轮回 提交于 2019-11-29 20:33:28
I get this error when trying to start Apache. _default_ virtualhost overlap on port 443 I'm trying to set up SSL. Almost every solution online says add: NameVirtualHost *:443 to the conf file but Apache still fails to start and just says Action start failed. the apache logs may have more information There is zero information in the Apache logs. Daniel Sokolowski To resolve the issue on a Debian/Ubuntu system modify the /etc/apache2/ports.conf settings file by adding NameVirtualHost *:443 to it. My ports.conf is the following at the moment: # /etc/apache/ports.conf # If you just change the port

How to select PHP version 5 and 7 per virtualhost in Apache 2.4 on Debian?

蓝咒 提交于 2019-11-29 20:29:08
Would it be possible to run PHP 7 and PHP 5 simultaneously in Apache 2.4 on Debian 9? I would like to be able to select the PHP version I wish to use per virtualhost. I believe this would be useful considering that some of my websites still use deprecated PHP features. This allows me to perform upgrades per site. How do I achieve something like this? For example <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName mywebsite.com DocumentRoot /var/www/mywebsite.com # UsePHP 7 </virtualHost> And <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName mywebsite2.com DocumentRoot

Site does not exist error for a2ensite

你说的曾经没有我的故事 提交于 2019-11-29 18:42:14
I have cmsplus.dev under /etc/apache2/sites-available with the following code, <VirtualHost *:80> ServerAdmin master@server.com ServerName www.cmsplus.dev ServerAlias cmsplus.dev DocumentRoot /var/www/cmsplus.dev/public LogLevel warn ErrorLog /var/www/cmsplus.dev/log/error.log CustomLog /var/www/cmsplus.dev/log/access.log combined </VirtualHost> Now when I use sudo /usr/sbin/a2ensite cmsplus.dev , I am getting the error, ERROR: Site cmsplus.dev does not exist! My webserver Apache/2.4.6 (Ubuntu) How to solve this issue? devo Solved the issue by adding .conf extension to site configuration files