virtualhost

configuring multiple domains using virtual host with mod proxy in a single httpd instance

我的梦境 提交于 2020-06-17 14:12:40
问题 I have an apache instance running three domains using name based virtual hosting and every domain has resources to reverse proxy them down to an application server. Application server is a JBoss running a since JVM instance (http://x.x.x.x:8080/) The domains along with their resources are, www.abc.com - alpha www.def.com - beta www.ghi.com - gamma - (root URL - no resource) abd.com and def.com domains have one resource whereas ghi.com has two (root (/) and gamma). this is how we have setup

How to configure multiple subdomain with SSL in Apache?

谁说我不能喝 提交于 2020-06-11 20:12:04
问题 Configuration: Debian Apache2 Wildcard SSL for: *.example.com subdomain: a.example.com, b.example.com. 1 dedicated server Websites are in NodeJS (ProxyPass...) For now, i'm able to get a.example.com to work. But how i can make a.example.com AND b.example.com working on the same server ? /etc/apache2/site-enable/a.example.com.conf <VirtualHost *:80> ServerName a.example.com Redirect permanent / https://a.example.com </VirtualHost> <VirtualHost *:80> ServerName www.a.example.com Redirect

How to configure multiple subdomain with SSL in Apache?

我们两清 提交于 2020-06-11 20:11:01
问题 Configuration: Debian Apache2 Wildcard SSL for: *.example.com subdomain: a.example.com, b.example.com. 1 dedicated server Websites are in NodeJS (ProxyPass...) For now, i'm able to get a.example.com to work. But how i can make a.example.com AND b.example.com working on the same server ? /etc/apache2/site-enable/a.example.com.conf <VirtualHost *:80> ServerName a.example.com Redirect permanent / https://a.example.com </VirtualHost> <VirtualHost *:80> ServerName www.a.example.com Redirect

Apache Virtual Host, access forbidden. Using XAMPP OS X

淺唱寂寞╮ 提交于 2020-03-06 03:36:15
问题 I go to "mytest.dev" in the browser, and I get the following error: Access forbidden! You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster. Error 403 mytest.dev Apache/2.4.18 (Unix) OpenSSL/1.0.2g PHP/5.6.19 mod_perl/2.0.8-dev Perl/v5.16.3 In my /Applications/XAMPP/etc/httpd.conf file I have the following line UN-commented and my directive thing looks

Second Virtual Host's DocumentRoot is changed after launching ec2 based on customized Amazon Linux AMI

人盡茶涼 提交于 2020-01-24 23:05:14
问题 I've searched for two days, but I couldn't find an explanation for this behavior. I have followed AWS docs. I've launched ec2 instance with recommend Amazon Linux AMI (aki-c48f51d9). Then customized my ec2 instance to my needs, including Apache's config: /etc/httpd/conf/httpd.conf My customization created two Virtual Hosts, as indicated below: <VirtualHost *:80> ServerName www.domain1.com ServerAlias domain1.com ServerAdmin support@domain1.com DocumentRoot "/var/www/html/folder1" <

make virtual host available through local network for iphone

会有一股神秘感。 提交于 2020-01-24 20:16:07
问题 I'm building a site on my localhost with a virtual host (mynewsite.com). Instead of uploading files to an actual server and I'd prefer to just test locally. I have the virtual host working on my desktop, I just want it to be available so I can see it on my iPhone or any computer on my network. So if I go to mynewsite.com on my iPhone it will display the site from my localhost. I think I need to do port forwarding but I'm having difficulty figuring it out. I'm on a Mac with MAMP. How do I make

Apache2 Configuration That Allows a Subdomain Point to an Machine:Port

▼魔方 西西 提交于 2020-01-24 19:48:05
问题 I own the domain, "peterlee.com.cn", and I added an A Record in my domain control panel: RR Destination IP TTL rs.peterlee.com.cn 10.50.10.75 1 hour I have an RoR (Ruby on Rails) project running on 10.50.10.75:9051 , which means the user can visit my RoR application by http://10.50.10.75:9051 I want to let the user visit it by http://rs.peterlee.com.cn, so I added the following VirtualHost File/Site: <VirtualHost *:80> ServerName rs.peterlee.com.cn DocumentRoot /usr/website/myapp/current

Mac apache localhost giving 403 Forbidden

淺唱寂寞╮ 提交于 2020-01-23 07:42:56
问题 Im trying to set up my local environment on my new mac OSX 10.9. I know it has apache already installed, so i've been using that. No matter how I set up my httpd-vhosts.conf/hosts/httpd.conf files, I continuously get a 403 forbidden error when visiting localhost OR "test.com" on my browser. The error / files / other information is listed below. This is the error I'm getting when visiting either web page Forbidden You don't have permission to access / on this server. Additionally, a 403

How to make a tumblr style profile url

大兔子大兔子 提交于 2020-01-23 07:20:49
问题 I wonder, how does tumblr doing profile url like this: http://www.username.tumblr.com/ http://username.tumblr.com/ I know we can change the profile url http://www.website.com/profile.php?user=username to http://www.website.com/username using the following RewriteRule RewriteRule ^([^/]+)/?$ profile.php?user=$1 [L,QSA,NC] I don't know how tumblr doing those profile urls. How can we make user profile urls like this: http://www.username.website.com/ http://username.website.com/ I have a

Two separate django sites in WSGI (root and /two)

杀马特。学长 韩版系。学妹 提交于 2020-01-22 15:15:51
问题 After hours of trying I've decided to give in and ask SO for help :) I have two Django 1.6 sites running on Apache2 on Debian 7. I have one vhost. I want the root domain for the vhost to go to one django site (example: mydomain.com), and a separate alias for the second site (example: mydomain.com/two). I can get two alias to work like below: WSGIDaemonProcess test1 python-path=/usr/local/projects/project_one:/usr/local/virtualenvs/project/lib/python2.7/site-packages WSGIScriptAlias /one /usr