virtualhost

virtual host in ubuntu not work

怎甘沉沦 提交于 2019-12-11 04:42:04
问题 I created a virtual host in /etc/apache2/site-available/mysite.local with this config: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName mysite.local DocumentRoot /var/www/mysite <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/mysite> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options

Symfony2 production; Apache VirtualHost not working

百般思念 提交于 2019-12-11 04:24:49
问题 I'm a novice to Symfony2 and MVC frameworks but have some experience with PHP and Apache. I developed a project on an Apache server on my workstation. I'm trying to deploy my first Symfony2 project on our production Ubuntu server, also running Apache. For some reason I cannot get the behavior I want. The server is running multiple virtual hosts just fine. However, when attempting to go to where the Symfony2 project should show up, I instead get a listing of the directory contents at the root

Nginx reverse proxy causing infinite loop

梦想与她 提交于 2019-12-11 02:39:02
问题 I have the following in my Nginx site config file: server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.php index.html index.htm; server_name example.com; location / { try_files $uri $uri/ /index.php?q=$uri&$args; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass

virtualhost keeps redirecting to deleted alias information

﹥>﹥吖頭↗ 提交于 2019-12-11 00:53:52
问题 I have a DigitalOcean droplet (i.e. a VPS server), with Ubuntu 14.04 and Apache 2.2. I had 4 virtualhosts configured, with 4 different domains pointing to 4 different folders, no problem. I needed to point a 5th domain (let's call it www.someshop.tld ) containing a PrestaShop installation. I added the following Alias to the apache2/sites-available/domain1.conf file so that www.domain1.tld/someshop would lead to www/prestashop , and it worked fine <VirtualHost *:80> ServerName www.domain1.tld

Subdomain Routing in Sails.js

故事扮演 提交于 2019-12-10 20:56:48
问题 I am trying to figure out a way to route subdomains in Sails.js in such a way, that is completely dynamic, the default routing does not seem to allow this. For example; if a user goes to theirname.example.com, the route would read that as example.com/users/theirname, and any parameters on the subdomain would tag onto the end /user/theirname. I have been searching the web for quite a few hours for some solid information on how to achieve such a thing. Any help is much appreciated. 来源: https:/

Istio envoy is dropping requests with Host header

梦想的初衷 提交于 2019-12-10 17:04:34
问题 I having an issue trying to get Istio working on my cluster. My infrastructure looks like this: I have a Magento Store with a varnish as front cache. It was working before istio installation. I have already enabled envoy injection. Varnish is deployed in a pod and has its own service redirects uncached to magento service. The problem comes when I try to curl from varnish to magento. If I curl magento service from varnish I get a redirect to magento URL (which is the expected behavior) root

I want to make a separate domain for images

本秂侑毒 提交于 2019-12-10 14:53:05
问题 I want to set up a domain called img.mydomain.com. It will be a virtual domain that just like my actual domain except for one difference: it will only serve files that end in .jpg .jpeg .gif .png etc. This way I can refer to img.mydomain.com/some_image.jpg. it will speed up the page speed by making the browser think that it's two separate domains (google page speed analyzer is always nagging me to do this). I'm running apache on a linux server. Should I do this in httpd.conf? If so, what is

Virtual Hosting in SSL with VirtualDocumentRoot

丶灬走出姿态 提交于 2019-12-10 13:52:58
问题 I do my dev work on an ubuntu 16.04 VM As I work on a number of projects, to make my life easier I use VirtualDocumentRoot and the hosts file to server sites from my home folder using *.dev domains: In 000-default.conf I have: <VirtualHost *:80> VirtualDocumentRoot /home/steve/websites/%-2/%-2/public_html ServerAlias *.dev </VirtualHost> then in hosts I have the various sites I'm working on: 127.0.0.1 somesite.dev 127.0.0.1 another.dev 127.0.0.1 athirdone.dev 127.0.0.1 blog.athirdone.dev That

How to create VirtualHost in Ubuntu 12.10 [closed]

徘徊边缘 提交于 2019-12-10 13:44:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I had followed many articles to 'How to create VirtualHost in Ubuntu'. This is what have I done Installed Apache sudo apt-get install lamp-server^ phpmyadmin I created folder called site1.com in /var/www/ Then I have created the file in /etc/apache2/sites-available/site1.com Then added the following code to that

Best practice to handle vhosts in nodejs

爷,独闯天下 提交于 2019-12-10 12:19:51
问题 What is the best practice to handle virtual hosts in node.js? I need to route domains to each individual http server.. http://api.localhost:8080 => localhost:9000 http://www.localhost:8080 => localhost:9001 https://secure.localhost:8080 => localhost:9002 // this request is HTTPS I am using express http 回答1: It's very common to use nginx on port 80, and then define servers (vhosts) within nginx with a reverse proxy to your node servers. The reason it's so common is because nginx is exceptional