virtualhost

need help with xampp virtual host

天涯浪子 提交于 2019-12-05 10:40:35
I am using XAMPP, Apache 2.2.17. I have added virtual host but my virtual host and localhost both point to the same location. Here is my code in httpd-vhosts.conf <VirtualHost www.domain.tld:80> ServerName www.domain.tld ServerAlias domain.tld *.domain.tld DocumentRoot "C:/xampp/htdocs/workspace/testsite" </VirtualHost> <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/xampp" ServerAlias localhost ServerName localhost </VirtualHost> With the above code, I get testsite with www.domain.tld so that is good. But If i type localhost, it will go to testsite as well. If I move ahead of test site then

Hosting multiple domains with WildFly (Undertow)

微笑、不失礼 提交于 2019-12-05 06:25:34
For example I have two domains ( app1.com , app2.com ) and two ears ( app1.ear , app2.ear ). Each EAR file consists of ejb.jar and web.war. Also each WAR has context root: /app1 or /app2 . So if I start WildFly I will have two applications running on localhost:8080/app1 and localhost:8080/app2 . How I can bind app1.com to localhost:8080/app1 and app2.com to localhost:8080/app2 ? As I understand, I should modify Undertow subsystem configuration in standalone.xml. I tried: <server name="default-server"> <http-listener name="default" socket-binding="http"/> <host name="app1.com" default-web

How to create Virtual Host from Apache .htaccess?

醉酒当歌 提交于 2019-12-05 04:55:29
I am using Apache Friends XAMPP in Windows (Local Server). I setup the virtual host in httpd-vhosts.conf in an Apache configuration directory like this NameVirtualHost *:80 <VirtualHost *:80> ServerName test.example.com DocumentRoot "E:\xampp\htdocs\example" </VirtualHost> This works fine when I browse the URL http://test.example.com Is it possible to create virtual host from Apache .htaccess dynamically? The context for VirtualHost has to be server config . See the Apache docs . This means that the directive may be used in the server configuration files (e.g., httpd.conf), but not within any

How do I create a VirtualHost on Zend Server?

那年仲夏 提交于 2019-12-05 03:51:42
I am using zend server and I added one VirtualHost into the extra/httpd-vhosts.conf file and removed # from the httpd.conf file. This is what I added into the extra/httpd-vhosts.conf file: NameVirtualHost *:80 <VirtualHost *:80> ServerName quickstart.local DocumentRoot D:/quickstart/Code <Directory D:/quickstart/Code> DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> When I access quickstart.local it is working fine, but it also affects localhost (i.e when I try to load http://localhost/ , I see the same site I do for http://quickstart.local

How to get .htaccess files working with Apache VirtualHost

ぃ、小莉子 提交于 2019-12-05 02:14:30
My problem is that my .htaccess file on my local server is not being read. The settings in the VirtualHost file seem to always take precedence. I have tried the following: Enabled mod_rewrite Changed the AllowOverride to All but this causes a HTTP Error 500 Internal server error . I have tried it with various options but it always causes a 500 error. I am using a VirtualHost file on Ubuntu which looks like the following: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /web/website <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /web/website>

GitSmartHTTP for gitolite repositories over Apache does not allow me to push

本秂侑毒 提交于 2019-12-05 01:36:52
I am setting up a git-http-backend CGI script to handle my git.domain subdomain. The server is behind an ELB (elastic load balancer) on AWS cloud. My server config is as follows (my git hosting is handled by gitolite): <VirtualHost *:80> ServerName git.domain ServerAdmin hjpotter92+git@domain #SuexecUserGroup git git DocumentRoot /opt/gitolite/repositories/ PerlLoadModule Apache::Authn::Redmine SetEnv GIT_PROJECT_ROOT /opt/gitolite/repositories/ SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER # Have also tried removing this variable SetEnv GIT_HTTP_EXPORT_ALL ScriptAliasMatch \ "(?x)^/(.*/(HEAD | \

Plesk 11 forcing redirect to non-www

有些话、适合烂在心里 提交于 2019-12-04 20:51:44
问题 I have ordered the new dedicated server with Plesk 11 on it. Moved my websites from old server to the new one but had some issue on opening websites. Using .htaccess, I force the client to use the website with www. Plesk is doing contrary by default: www to non-www. A redirect loop as result ... My question: how can I disable adding Plesk these rows by default: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^www.example.com [NC] RewriteRule ^(.*)$ http://example.com$1 [L,R

how to create a VirtualHost to serve only static content

谁说胖子不能爱 提交于 2019-12-04 20:41:01
问题 I want to create a virtual host in apache such that it serves only static content like stylesheets, videos, images, javascripts, text files, etc. I am not looking at any "processing" capabilities from this virtual host. 回答1: Create a VirtualHost entry as follows: <VirtualHost *:80> ServerAdmin admin@domain.tld ServerName media.domain.tld DocumentRoot "/Library/WebServer/Documents/media" ErrorLog "/private/var/log/apache2/media-error_log" CustomLog "/private/var/log/apache2/media-access_log"

Setup VirtualHost for Zend Application on Wamp server

浪子不回头ぞ 提交于 2019-12-04 19:50:49
I'm following this tutorial to learn how to start a project using ZendFramework http://framework.zend.com/manual/1.12/en/learning.quickstart.create-project.html When I get to setup a virtual host I get stuck. If I do exactly as the tutorial says, it shows me an error (in all my project, zend or not), says the file wasn't found. Then I found this tutorial on StackOverflow very handy Can't run zend framework MVC application on WAMP Following what the guy on the bottom of the page says takes me to the same error when I try to access my app as zendProject.local/ This is what I got on hosts

Phusion Passenger + Nginx Virtual Host Configuration for Ruby on Rails Application in Debian 6

↘锁芯ラ 提交于 2019-12-04 18:25:28
What my question is how do i map all the instances with port 80 with appropriate identical sub domains using Phusion Passenger + Nginx under Debian 6 for the following scenario. Note : i am newbie to ruby on rails and server hosting , i unable to express my vision as question , please forgive me if i am wrong or correct me. Hi , i am having an one product developed using ruby on rails , going to host in an dedicated server with 32 GB Ram and 8 Core Server Processor. Each client should have seperate DB and separate rails instance. I am replicating - duplicating code for each client with