virtual-hosts

apache cyrillic wildcards in virtualhost config

时光毁灭记忆、已成空白 提交于 2020-01-13 19:35:35
问题 there is a question. I have project with many subdomains and it is configured like this: VirtualHost1: ServerAlias a*.example.com VirtualHost2: ServerAlias b*.example.com VirtualHost3: ServerAlias c*.example.com It works very good. And now I need the same, but with non-latin domains (cyrillic), something like this: VirtualHost1: ServerAlias a*.example.com VirtualHost2: ServerAlias б*.example.com VirtualHost3: ServerAlias в*.example.com While trying punycode converter I saw something like this

How can I setup different SSL-Certificates for vhosts on Apache?

偶尔善良 提交于 2020-01-11 02:09:10
问题 I have a web-server, that serves different domain-names, but has only one IP-address assigned. That works fine with virtual hosts in Apache. Now I want SSL-encrypted connections for the websites. How can I set different SSL-certificates for the different vhosts? Using different IP's for the different hostnames would be an solution - not very elegant but possible. But I want to know, how I can use different SSL-certificates for different vhosts. So I look for a solution with only one IP

Apache/PHP: Anyway to retrieve the ServerName setting via PHP

心已入冬 提交于 2020-01-06 08:19:28
问题 I have an Apache virtual host that looks like this: <VirtualHost *:80> ServerName host1.example.com ServerAlias host2.example.com DocumentRoot /srv/web/host1.example.com/pub </VirtualHost> I have the following file: /srv/web/host1.example.com/pub/test.php I am requesting the following URL (notice that I am using the ServerAlias , not the ServerName : http://host2.example.com/test.php I'd like to have test.php output the ServerName variable somehow ( host1.example.com ). Is there any way to do

How set TimeZone for each virtual host in tomcat

时光怂恿深爱的人放手 提交于 2020-01-03 17:06:04
问题 I have web apps for 3 regions (Mongolia,Turkmenia, etc). And they are deployed on tomcat's virtual host . Now I need set timezone for each application. How can I do that? I implemented ServerContextListener interface for each apps to set TimeZone : @Override public void contextInitialized(ServletContextEvent servletContextEvent) { TimeZone timeZone=TimeZone.getTimeZone("Asia/Ulan_Bator"); // TimeZone timeZone=TimeZone.getTimeZone("Asia/Ashgabat"); timeZone.setDefault(timeZone); } But after

Wildcard Virtual Hosts Ubuntu

99封情书 提交于 2020-01-03 05:27:12
问题 I'm looking to setup wildcard virtual hosts in Ubuntu. I've set it up on a WAMP setup pretty easily, but I don't know enough about Linux to know how the setup differs. The goal is to be able to create folders like: site.weblocal site2.weblocal site3.weblocal etc..... without having to add individual vhosts each time. Someone has recommended dnsmasq? Any tips would be greatly appreciated :) 回答1: for Ubuntu it goes as simple as sudo apt-get install dnsmasq sudo echo "address=/weblocal/127.0.0.1

Dynamic subversion repos via subdomains (in Apache)

核能气质少年 提交于 2020-01-01 01:17:10
问题 I'm trying to set up a subdomain-to-repository translation in Apache. Example: foobars.domain.com -> /server/svnrepos/foobars I've tried to get this done with mod_rewrite : RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.domain\.com$ [NC] RewriteRule ^/svn(.*) /svn/%2$1 [PT] However, this causes problems with basic svn operations; 'checkout' causes this pretty thing: $ svn co http://foobars.domain.com/svn svn: '/svn/foobars/!svn/vcc/default' path

Wamp Server: Multiple Virtual Hosts are not working on Windows

安稳与你 提交于 2019-12-29 04:50:26
问题 I have two virtual hosts on windows(for example: test1.dev and test2.dev). But it always load content of test1.dev for both virtual hosts. Following are my files: hosts: 127.0.0.1 localhost 127.0.0.1 test1.dev 127.0.0.1 test2.dev httpd.conf: <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> Include "c:/wamp/alias/*" <VirtualHost 127.0.0.1> ServerName test1.dev DocumentRoot "C:\wamp\www\test1\public" </VirtualHost> <VirtualHost 127.0.0.1> ServerName

Security role to user/group mapping: Error ADMA0014E: No virtual host specified

喜你入骨 提交于 2019-12-24 07:52:51
问题 When trying to save via OK Button, I'm getting this error and WebSphere is not saving it. How can I fix that? EDIT: This is the error message I'm trying to resolve with the configuration in WebSphere: [6/20/16 10:46:34:524 CEST] 00000034 WebCollaborat A SECJ0129E: Authorization failed for user TUZRS01:customRealm while invoking GET on null:/TestProject/, Authorization failed, Not granted any of the required roles: User 回答1: @DYangu's link to IBM pointed me in the right direction. When