Apache :: Setup Subdomain / Virtual Host To Redirect To Specific Port And Path

Mar 13, 2013

I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I have setup my server with DDYNS through my domain name registar. Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.

I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)...

Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)

View 1 Replies


ADVERTISEMENT

Apache :: Unable To Setup Subdomain And Virtual Host To Redirect To Port And Path

Mar 12, 2013

I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I am, however, having great difficulties doing this.

I have setup my server with DDYNS through my domain name registar.

Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.

I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.

My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)

This is annoying for others to type out and I am just wanting to make it look pretty. Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)

View 1 Replies View Related

Apache :: How To Ajp Redirect In Virtual Host

May 1, 2014

I have a server server.SERVER.com which ajp-redirects /app to port 8009 in httpd.conf as

View 7 Replies View Related

Apache :: Virtual Host Works On Port 80 But Fails On 443

Apr 20, 2013

OS: RHEL 6.4
SELinux: permissive mode
Apache: 2.2, mod_fcgid, mod_suxec, mod_ssl enabled
Common Name: www.user.dept.university.edu
(Note:user names, accounts, organizations etc. sanitized)

why Apache will serve PHP-based web pages over port 80 but not over 443. Here is the virtual host block excerpt from httpd.conf:

Code:
<VirtualHost *:80>
ServerName user.dept.univsersity.edu
ServerAlias user
DocumentRoot /home/user/public_html/subdirectory
<IfModule mod_fcgid.c>

[Code] .....

View 4 Replies View Related

Apache :: Setup A Virtual Host

Aug 7, 2014

I have a fresh Ubuntu 14.04 install (desktop). I installed Apache, php and mysql from APT and updated everything.I tried to setup a virtual host using these directions: URL...I followed them to the letter:

o I created a folder /var/www/mydomain.local/public_html
o I copied the 000-default.conf in sites available and modified it
o I added mydomain.local to my hosts file (with IP of 127.0.0.1
o I used a2ensite to enable the host
o I used service apache2 reload

When I went to mydomain.local in firefox, it took me to the default host main page.I tried a restart of the service and even a reboot of the computer. No change.On a theory, I used a2dissite to remote 000-default from the enabled site list and reloaded the service. I got the home page for mydomain.local after that.

I created a named host called localhost and reloaded the apache. When I went to http://localhost it took me to the mydomain.local homepage. Rebooted the computer. Now, localhost gives me the apache default home page and mydomain.local does not work at all (I get a server not found).

I get the feeling that there is an apache configuration item I am missing but I cannot find it.

View 1 Replies View Related

How Can I Define A Specific Port For A Subdomain

Mar 21, 2007

I'm currently running Pootle on www.example.com:8000 and I'd like to be able to access it from pootle.example.com but Pootle has its own python server. I use Apache. How could I do that?

View 4 Replies View Related

Apache :: How To Redirect Specific Useragent On Specific URLs

May 20, 2015

I have question: How to redirect specific useragent on specific URLs to specific URLs in .htaccess [Question]

E.g.:

I want to redirect 301 with conditional:

Code:
useragent: Firefox
from my url1: domain[dot]com/old-url1/
from my url2: domain[dot]com/old-url2/

to

Code:
to new url1: in my url1: domain[dot]com/new-url1/
to new url2: in my url1: domain[dot]com/new-url2/

I create this in my .htaccess but not work

Code:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} googlebot [NC]
RewriteRule ^/?this-is-url/?$ domain[dot]com [L,R,NC]

View 1 Replies View Related

Apache :: Setup Virtual Host On Windows 7 Home Premium

Jan 2, 2014

I'm using Vertrigo 2.30 which in turn uses Apache 2.2.26 as part of its stack I am trying to set up virutal host on Windows 7 home premium.in httpd.conf I have uncommented Include conf/extra/httpd-vhosts.conf in C:WindowsSystem32driversetchosts I have

127.0.0.1 localhost
127.0.0.1 localhost
198.0.65.217 talknowradio.com # www
198.0.65.217 paranormalpalaceradio.comcastbiz.net # vhost

in C:Program Files (x86)VertrigoServApacheconfvertrigo.conf I have

<Directory "C:Program Files (x86)VertrigoServwww">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from All
</Directory>

[code]...

my primary domain still works perfectly but the virtual host I created keeps loading 403 error page I have checked the Apache error log and I found two instanses of

[Tue Dec 31 08:33:29 2013] [error] [client 198.0.65.217] script 'C:/Program Files (x86)/VertrigoServ/www/vhost/modules.php' not found or unable to stat, referer: URL....I have no clue where or why its reading a module.php file granted I do use Nuke Evolution on my primary site but the only page in the virual host folder is a index.html I have checked and double checked.

View 16 Replies View Related

Apache :: How To Select Specific File With Path Using HTAccess

Jun 14, 2014

I want to select a specific file by its path using .htaccess to allow access to it.

View 1 Replies View Related

Apache :: IP And Page Specific Redirect?

Feb 19, 2014

I'm trying to get code to go in a .htaccess file that when a specific IP tries to get a specific page, he/she is redirected to another page.

I have tried many variants of this code below ...

Code:

RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^12.345.678.90$
RewriteCond %{REQUEST_URI} /requested-page.html$
RewriteRule .* /redirect-to-this-page.html [R=301,L]

... and nothing works. My webserver gets hosed, and my otherwise working system gives me an error when I try to get a page from it. I am, by the way, using Mac 10.6.8, with Apache 2.2 on both server and client.

What will work??

View 6 Replies View Related

Apache :: Redirect Any Specific Page Of Site To Homepage

Feb 19, 2015

How do i redirect URL: example.com/page1 to example.com..i want to redirect any specific page of my site to homepage.

View 3 Replies View Related

Apache :: Log Rotation Setup - Directory Path Has Spaces

Sep 23, 2013

I am trying to set up log rotation on my Apache Server on Windows 2008 using the rotatelogs.exe executable. I believe I am having issues because my directory path has spaces.

From my understanding, a full path is needed for the ErrorLog but not for the CustomLog

ErrorLog "|"C:/Program Files (x86)/Apache Software Foundation/Apache2/bin/rotatelogs.exe" "C:/Program Files (x86)/Apache Software Foundation/Apache2/logs/Error/Error_%Y-%M-%D.log" 86400"

CustomLog "|bin/rotatelogs.exe logs/Access/Access_%Y-%M-%D.log 86400" common

The error that I get is:
C:Program Files (x86)Apache Software FoundationApache2.2bin>httpd.exe -k start
The system cannot find the path specified.

View 4 Replies View Related

Setup Subdomain To Another Host

May 3, 2007

to setup 1.domain.com to another host

I have domain (domain.com) which is on dedicate server with root access.

also have 2-nd-domain.com which is on hostgator host(where can i add domains via addon domains)

now i need to setup 1.domain.com subdomain on hostgator.

how can i do it ?

pls correct me, if i'm wrong

1. via Directadmin Subdomain Management tool (on domain.com) add "1" subdomain

2. check "DNS Management" section -> 1.domain.com is on main domain.com IP

Unfortunately there isn't any option to edit this record. i can only delete it and add manually. (i know, that i can do it via SSH - > edit config file, but i don't have enought experience to edit files via SSH. just know, few commands, how to archive, reboot, move, etc ...)

delete this record and add manually

DNS Management -> Add Domain Records ->
1.domain.com - A record =IP of hostgatore host

btw, did i need to add NS records?

3. go to 2-nd-domain.com and try to add 1.domain.com via addon domains.

hmm

it seems, that i'm doing something wrong, as i got

Quote:

Using nameservers with the following IPs: **.***.***.**2, **.***.***.**1 (my main domain IPs) Bind reconfiguring on gator using rndc

Created DNS entry for 1.domain.com
account is created, but IP-s are wrong

View 0 Replies View Related

Setup Subdomain To Another Host

May 3, 2007

to setup 1.domain.com to another host

I have domain (domain.com) which is on dedicate server with root access.

also have 2-nd-domain.com which is on hostgator host(where can i add domains via addon domains)

now i need to setup 1.domain.com subdomain on hostgator.

how can i do it ?

pls correct me, if i'm wrong

1. via Directadmin Subdomain Management tool (on domain.com) add "1" subdomain

2. check "DNS Management" section -> 1.domain.com is on main domain.com IP

Unfortunately there isn't any option to edit this record. i can only delete it and add manually. (i know, that i can do it via SSH - > edit config file, but i don't have enought experience to edit files via SSH. just know, few commands, how to archive, reboot, move, etc ...)

delete this record and add manually

DNS Management -> Add Domain Records ->
1.domain.com - A record =IP of hostgatore host

btw, did i need to add NS records?

3. go to 2-nd-domain.com and try to add 1.domain.com via addon domains.

it seems, that i'm doing something wrong, as i got

Quote:

Using nameservers with the following IPs: **.***.***.**2, **.***.***.**1 (my main domain IPs) Bind reconfiguring on gator using rndc

Created DNS entry for 1.domain.com

account is created, but IP-s are wrong

View 0 Replies View Related

Apache :: Redirect Every Single Page From Old Subdomain

May 12, 2015

Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).I need to redirect page from old subdomain to a new subdomain

Example:
esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage

Source site is very chaotic (static pages + wp pages) and there are no clear rule for redirection (no regex ).So I need to redirect every single page but syntax:

Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage doesn't work!I think "esp.site.com" in source page is not acceptable syntax..which is the correct syntax ? Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ?

View 1 Replies View Related

Apache :: Redirect Some HTM Page To WordPress Page Without Path And Query String

Jan 5, 2015

I want to permanent redirect some .html page from subdomain to main domain WordPress page,Redirect permanent /cat/FSBO76.URL....

View 1 Replies View Related

Apache :: 2.4 Subdomain Setup Fails

Oct 7, 2012

I am struggling with this all the day, no answer i found here as well. how to setup proper a subdomain i need. My Apache config has 2 domains configured (on same IP), for the domain2.com i need to setup a sub-domain. Here is what i have so far, but the subdomain keeps redirecting me to domain2.com (main site).

View 2 Replies View Related

Setup Apache Home Server - Port 4040

May 31, 2014

I had setup an apache home server. here the 80, 8080 ports are blocked . So I made my apache to listen to 4040 port. but the problem now is ,i use cloudflare service to point my domains to my server. now its showing error when i give my ip because the port is not 80. i tried putting dns host point to xxx.xx.xxx.xx:4040 in cloudflare but shows invalid ip ...

View 1 Replies View Related

Apache Virtual Host

Jul 25, 2008

For some reason, the first virtual host i have listed in apache2.conf gets all the traffic of all the other virtual hosts listed below it.

Example: Domain xyz.com is listed as the first virtual host. the second, third, and fourth are 123.com, 987.com, and mno.com, respectively (fictitious domains). However, it seems that everything below xyz.com goes straight to xyz.com.

If i switch the first entry, xyz.com with any of the others, such as mno.com, so that mno.com is the first virtual host entry, everything then forwards to that domain.

View 0 Replies View Related

Apache - Run Virtual Host As User

Jun 5, 2009

I've run into a wall trying to run apache with multiple websites allowing users to use FTPd to manage files.

I'm running FreeBSD 7.1 on Apache 2.2.x

The issue is that Apache runs as www:www but FTPd writes the files as username:client. When performing some scripts that edit back-end files, this obviously can cause errors.

The data for each directory is stored in /home/username/www

I looked into some apache directives I could use. I tried putting User and Group directives into the vhost configuration for each vhost, but that did not work. I even found the perchild module and it looked like it can do the job but was a bit scared and turned off by the fact that it states it is beta at the top of the page. (I cannot link to it because I do not have enough posts.)

View 2 Replies View Related

Apache Virtual Host, Can't Use Allowoverride

Jun 8, 2008

I have a virtual host and I want to allow .htaccess files to be used, but that requires to put allow override yes in the virtual host declairation as its off by default, but I get this error:

Starting httpd: Syntax error on line 16 of /etc/httpd/conf/virtualhosts.conf:
AllowOverride not allowed here

This completly ditches my whole virtual hosting idea that I've been planing for a while.

Any other way to allow .htaccess through virtual hosts?

using apache 2.2.3

View 4 Replies View Related

Apache ReverseProxy On Virtual Host

Nov 20, 2007

Today I configured a Virtual Host (VH) for one of my customers. VH run on WindowsServer 2003 Apache 2.0.59. I enabled mod_proxy and mod_proxy_http modules and successfully loaded. Here is the VH config:

Code:

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin admin@example.com
ServerName www.example.com
DocumentRoot C:/Apache2/htdocs/www/example.com
DirectoryIndex index.php
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPass /cms-test [url]
ProxyPassReverse /cms-test [url]
ProxyPass /cms-eshop [url]
ProxyPassReverse /cms-eshop [url]
ErrorLog logs/www.example.com-error.log
CustomLog logs/www.example.com-access.log combined
</VirtualHost>
According stated above proxy should map the content of yyy.yyy.yyy.yyy:80 and send it to client... Apache doesn't do that but redirects client directly to yyy.yyy.yyy.yyy instead, even rewriting URL, what is not proper purpose of proxy. I would expect proxy to retrieve content from yyy.yyy.yyy.yyy:80 and forward it to client without URL rewriting. Rewriting URL and direct aiming of client to source of content is unsuccessfull of course, because the source (yyy.yyy.yyy.yyy:80) trust only to xxx.xxx.xxx.xxx which has a right to request a content.

Could anybody explain why proxy doesn't proxy and redirects instead?

View 2 Replies View Related

Setting Up Virtual Host In Apache

Mar 25, 2007

I'm trying to setup a subdomain, and this is what i've added in httpd.conf

<VirtualHost 000.000.000.000>
ServerName dir.domain.com
DocumentRoot /home/domain/html/dir/
</VirtualHost>

Am i missing something here? I restarted httpd when finished.. but it doesnt work.

View 3 Replies View Related

Apache Virtual Host Work On 80 But Not Over 443

Apr 18, 2013

OS: RHEL 6.4
SELinux: permissive mode
Apache: 2.2, mod_fcgid, mod_suxec, mod_ssl enabled
Common Name: [URL] .....

View 7 Replies View Related

Cpanel Subdomain Path

Feb 7, 2008

I am running Cpanel x 11.

Can I create a subdomain like:

mysub.mydomain.com and instead of its physical location being at:

'public_html/mysub'

Can I change/create its physical location at:

'public_html/inside_dir/yet_another_inside_dir/mysub'

View 2 Replies View Related

Ubuntu + Apache + Virtual Host + Subversion

May 11, 2009

i have followed twice a tutorial (you'll find it if you type in google "sellersrank ubuntu subversion". It is the second result. You know, I cant insert URL in my posts yet...) to install Ubuntu + Apache + Virtual host + Subversion, but when i try to access the repository through "svn.domain.com" an error message like this is showed:

Address Not Found
Firefox can’t find the server at svn.domain.com.

I have Ubuntu 8.04 + Apache 2.2.8

View 4 Replies View Related

Apache :: Reducing Bandwidth To Virtual Host?

Jan 2, 2013

I'm going to use my apache server to host files(it works with a php script so we can't use FTP for now...) so I was wondering if I could limit this virtual host's bandwidth per second so the websites on the other virtual hosts still load properly. Any module for apache on windows which can do this?

View 2 Replies View Related

Apache :: Virtual Host Not Using Its Web Root Doc Folder

Jul 29, 2014

I use Webmin (1.69) to work on my development environment. I am using Ubuntu Desktop 14.04 right now. I am not exactly an Ubuntu newbie but I would not call myself an expert either.

I created a virtual host (newdomain.local) with webmin. I filled in all the fields and saved the new VH definition. I added newdomain.local to my hosts file with an ip address of 127.0.0.1 and restarted apache.

When I go to [URL] ...., it is not taking me to the VH's home page but to the default home page.

Why this might be happening?

View 2 Replies View Related

Apache :: Too Many Redirects With Virtual Host And HTAccess

Apr 5, 2013

I have a WAMP server that hosts a few sites, but I have a particular site with about 5 domains. I want them all to point to the correct website folder and all to be redirected to a single domain for SEO purposes. Here is what it looks like in the virtual hosts file:

<VirtualHost 50.62.82.101>ServerAdmin info@hovaness.comDocumentRoot "c:/wamp/www/example"ServerName example.comServerAlias example.net www.example.com www.examples.net www.examples.com examples.com examples.netErrorLog "logs/example.com.log"

View 1 Replies View Related

Virtual Path

Jul 10, 2007

I'm installing a script that's suppose to act as a payment gateway/store. The script requires the virtual path to the secured directory holding the products and everything I've tried doesn't work! It should be something like /home/username/public_html/secured where username is replaced with my username. I'm hosting with godaddy and have tried just about everything on this page: help.godaddyDOTCOM/article.php?article_id=1360 without any luck. Any ideas or experience with this? I'm on the economy plan with godaddy.

View 0 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved