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).
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)
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)
I have a server at volumedrive it has cpanel and whm installed etc I am trying to setup the name servers but everytime it fails is there something that I might be missing?
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 ?
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
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
I am really getting confused now. Some people tell me it is possible to set up a simple subdomain and add a SSL-certificate to this, while others tell me I have to set up a new account for the subdomain (subdomain.domain.com) in WHM and assign it to it's own IP-adress.
So, my queston is what is the best way to set up a secure subdomain, like [url]? I have already purchased a SSL-certificate for secure.domain.com.
Im using Mod_JK 1.2.27 Apache 2.2.21 Linux RHEL 5.7 Boss 7
I keep getting 503 errors-Service Temporarily Unavailable on the browser Even though I can hit the servlets and JSPs on there just fine if I hit the JBoss server individually. I get these errors in the mod_jk.log file [Thu Apr 04 01:54:34 2013] [6068:3860842240] [debug] ajp_send_request::jk_ajp_common.c (1520): (worker1) request body to send 0 - request body to resend 0
My current "manager" it his all "great time" couldnt fix irt whole day so I am looking for experienced manager to check and fix my problem, let me know how much you charge per 1h and what's your experience,
httpd: [ != HTTP/1..] httpd has failed, please contact the sysadmin Im running CentOS with apache 1.3 and trying to run Php5 with whm 11.2.0 and cpanel 11.6.0.
Ive tried everything from loading the least amount of modules to trying to go back to php 4.3 but nothing seems to work and i get the same error no matter which way i go. My zend is the latest required for php5 too.
Here is a tail from my apache error log.
Code: [Sat Aug 4 02:55:13 2007] [notice] FastCGI: process manager initialized (pid 14627) [Sat Aug 4 02:55:13 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.3 mod_gzip/1.3.26.1a mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 F$ [Sat Aug 4 02:55:13 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec) [Sat Aug 4 02:55:13 2007] [notice] Accept mutex: sysvsem (Default: sysvsem) [Sat Aug 4 02:55:28 2007] [notice] child pid 14633 exit signal Segmentation fault (11) [Sat Aug 4 02:56:14 2007] [notice] child pid 14634 exit signal Segmentation fault (11)
My customer wants a Windows system - but I'm rusty at best in Windows.I downloaded VC11 x86 Thread Safe (2013-Nov-13 20:57:44), unpacked it, moved it to it's own directory, edited httpd.conf (no auto installation) and confirmed it was working (localhost/index.html)
I added PHP and ran a PHP info - a little trouble getting the php.ini found.Apache seems to work fine on the local system - either localhost/index.html or nn.nn.nn.nn/.But remote browsers timeout when attempting to connect.
1. I've opened command as administrator and run httpd.exe directly
2. I've installed httpd.exe as a service, opened it's properties window and started it from there
3. Changed the listen port to 8080
4. netstat sees the remote browser with a waiting connection - and the local service
5. The Windows system is on my Mac network (same systems where the remote browser is) and I have transferred megabytes of files between the two systems.
In Component Services - the Apache2.4 service shows Log On As 'Local Service' - I'm guessing it should show as 'Network Service.I tried changing this - used the local user login - restarted the service. I didn't see any way to change it to 'Network Service'. Perhaps this is the problem?
ODDLY - the remote browser worked briefly - then failed with the same 'time out'.I'm guessing this is something simple that I don't understand about Windows - (then again, since I don't understand much about Windows, it could be complicated too).
I use Windows 7, running Apache VC10 in the XAMPP environment. It worked well, I am a newbie, it runned smoothly to programe a brief static page. Now I have everytime this logerror... I didn't change anything in the files and scripts of my apache folder...
[Wed Jan 22 21:12:15.178559 2014] [ssl:warn] [pid 3392:tid 264] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name [Wed Jan 22 21:12:15.272159 2014] [core:warn] [pid 3392:tid 264] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Gathering header information file(s) from server(s) Server: CentOS-3 - Addons retrygrab() failed for: http://mirror.centos.org/centos/3/ad...rs/header.info Executing failover method failover: out of servers to try Error getting file http://mirror.centos.org/centos/3/ad...rs/header.info [Errno 4] IOError: <urlopen error >
when I run /etc/easyapache it too fails
Quote:
root@server1 [~]# /scripts/easyapache Testing connection speed...(this could take a while)............Done Ping:32.076 Testing connection speed to 69.90.250.35 using pureperl...(120500.00 bytes/s)...Done Ping:32.179 Testing connection speed to 69.90.250.34 using pureperl...(120500.00 bytes/s)...Done Ping:49.545 Testing connection speed to 69.72.164.152 using pureperl...(76681.82 bytes/s)...Done Ping:49.605 Testing connection speed to 69.72.164.155 using pureperl...(70291.67 bytes/s)...Done Ping:51.603 Testing connection speed to 198.66.92.147 using pureperl...(76681.82 bytes/s)...Done 5 usable mirrors located Fetching http://layer1.cpanel.net/buildapache.sea (0)....@69.90.250.35......connected......receiving...1%...2%...3%...4%...5%...6%...7%...8%...9%...10%...11%...13%...14%...15%...16%...17%...18%...19%. ..20%...21%...22%...23%...25%...26%...27%...28%...29%...30%...31%...32%...33%...34%...35%...36%...38%...39%...40%...41%...42%...43%...44%...45%...46%. ..47%...48%...50%...51%...52%...53%...54%...55%...56%...57%...58%...59%...60%...62%...63%...64%...65%...66%...67%...68%...69%...70%...71%...72%...73%. ..75%...76%...77%...78%...79%...80%...81%...82%...83%...84%...85%...87%...88%...89%...90%...91%...92%...93%...94%...95%...96%...97%...98%...100%...... Done Creating directory buildapache Verifying archive integrity... All good. Uncompressing buildapache........................................................................................................................................... ...................................................................................................................................................... ...................................................................................................................................................... ................................................................. Checking Update System........Your operating system's rpm update method (yum) was not able to locate the glibc package. This is an indication of an improper setup. You must correct this error before you can proceed. Please correct the conflicts and try again! initfpsuexec: using apache 1.x support Waiting for httpd to restart..............finished.
index-file.names = ( "index.php", "index.html", "index.htm", "default.htm" ) and my httpd.conf
Code: ProxyRequests Off ProxyPreserveHost On ProxyPass /lighttpd http://0.0.0.0:81/ ProxyPassReverse / http://0.0.0.0:81/ Now when I created a folder on my server's httpdocs /lighttpd/
everything runs smooth so I got the lighty to work for me.
Okay now that i figure it works I wanted to run one of my subdomain on lighty so that I can reduce the load on the server. Does anyone know how I can setup one of my subdomain to open with lighttpd and keep everything else on apache?
In my computer (Windows 7 Ultimate) I host my sites with Apache 2.2.25 - mod_fcgid-2.3.6-win32-x86 and PHP 5.4.28. In "httpd-vhosts.conf" file from Apache I have my domain set as follows and work fine (http://www.example.com or http://example.com):
But when I tried to access the page: http://www.director.example.com or http://director.example.com, I was redirected to the page http://www.example.com.
I have DNS configured for "example.com" and "director.example.com". This sites is live in another server.
Error.log files for "director.example.com" and Apache is empty. How can I configure the subdomain to work?
I have an ecommerce store. dns at godaddy. A record www points to the 3dr party hosted shopping cart solution on ip a.a.a.a. I also have a blog. A record blog subdomain points to another server b on ip b.b.b.b hosted away from the shopping cart server a completely.
So www goes one place and blog goes to another.The problem is I need to somehow make the blog appear within the main site as URL...blog instead of as a subdomain blog.domain.com.
I cannot access or modify the hosted shopping cart server in any way. I cannot load wordpress there, that is why it is on a completely separate server.I've been told this is perhaps possible with a reverse proxy configuraton on server b where ip b.b.b.b is.So that even though blog. points to server b it can appear that the url is www.mydomain.com/blog and the blog pages off that directory as well.Can this be done via reverse proxy?
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 ?
Switched from NGINX to Apache2 and now having challenge getting my subdomain s to work properly. Everything worked fine w/ NGINX - so I don't think this is related to my DNS or hosts file setup.
PROBLEM: Calls to dev.domain-name.org are going to www.domain-name.org.
I have tried many different changes to the conf files... NameVirtualHost changes, VirtualHost changes... I can't count how many times I have restarted Apache now.
Here is my setup:
ports.conf ----------- Listen 80 Listen 443 NameVirtualHost 96.126.xxx.xxx:443 (xxx'd out for privacy on forum) NameVirtualHost *:80 within sites-available and activated and linked in sites-enabled:
So here's my situation: I have a rented vent server, that I wanted to point vent.mydomain.com to the IP of said vent server. I put an A record in the dns pointing to the server and all is well. When I type vent.mydomain.com into a browser it take me to the cPanel/WHM page saying "Great Success, Apache is working". Is it possible that I can somehow have that get redirected to the main site or no?
Basically if Im connecting with the vent client, I want it forwarded to the vents IP, otherwise I want to have it redirected to mydomain.com.