virtualhost

Nginx TCP forwarding based on hostname

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 08:47:57
问题 With the release of TCP load balancing for the Nginx community version, I would like to mix OpenVPN and SSL pass-through data. The only way for Nginx to know how to route the traffic is via their domain name. vpn1.app.com ─┬─► nginx at 10.0.0.1 ─┬─► vpn1 at 10.0.0.3 vpn2.app.com ─┤ ├─► vpn2 at 10.0.0.4 https.app.com ─┘ └─► https at 10.0.0.5 I have taken a look at the TCP guides and the module documentation, but it doesn\'t seem well referenced. If anyone can point me to the right direction, i

Adding VirtualHost fails: Access Forbidden Error 403 (XAMPP) (Windows 7)

ぃ、小莉子 提交于 2019-11-26 08:39:54
问题 I\'ve got a XAMPP installation running on Windows 7. As soon as I add a VirtualHost to httpd-vhosts.conf, BOTH the \'regular\' http://localhost AND the new dropbox.local aren\'t working. This is what I added to my httpd-vhosts.conf : <VirtualHost *:80> ServerAdmin postmaster@dummy-host.localhost DocumentRoot \"E:/Documenten/Dropbox/Dropbox/dummy-htdocs\" ServerName dropbox.local ServerAlias www.dropbox.local ErrorLog \"logs/dropbox.local-error.log\" CustomLog \"logs/dropbox.local-access.log\"

Apache VirtualHost 403 Forbidden

时光总嘲笑我的痴心妄想 提交于 2019-11-26 07:53:18
问题 I recently tried to set a test server up with Apache. The site must run under domain www.mytest.com . I always get a 403 Forbidden error. I am on Ubuntu 10.10 server edition. The doc root is under dir /var/www . The following are my settings: Content of /var/www ls -l /var/www/ total 12 drwxr-xr-x 2 root root 4096 2011-08-04 11:26 mytest.com -rwxr-xr-x 1 root root 177 2011-07-25 16:10 index.html Content of the host file on the server (with IP 192.168.2.5) cat /etc/hosts 127.0.0.1 localhost

how to create virtual host on XAMPP

陌路散爱 提交于 2019-11-26 05:16:40
问题 I am sure this question is being asked many times but I am not encounter with a problem. I am using XAMPP where I configure Zend framework. XAMPP is running on port 8081 as 80 is being occupied by some Windows process I need to use virtual host for that I configure with following code in C:/xampp/apache/config/extra/httpd-vhosts.config (or C:/xampp/apache/conf/extra/httpd-vhosts.conf in newer releases). <VirtualHost *:80> ServerName comm-app.local DocumentRoot \"C:/xampp/htdocs

Create subdomains on the fly with .htaccess (PHP)

依然范特西╮ 提交于 2019-11-25 22:27:20
问题 I am looking to create a system which on signup will create a subdomain on my website for the users account area. e.g. johndoe.website.com I think it would be something to do with the .htaccess file and possibly redirecting to another location on the website? I don\'t actually know. But any information to start me off would be greatly appreciated. Creating a sign up area is not the problem - I have done this many a time. I am just unsure where to start with the subdomain. 回答1: The quick