Apache :: Redirect - Internal Server Through External Server

Oct 7, 2014

I have a -I think- common issue, one external server available from internet and an internal server for local only.

I want that to ask for [URL] ....

I can get the content of an internal server. For this I tried this at httpd.conf:

Redirect /site http://in.ter.nal.ip/site

but browser changes to internal IP and obviously I can't reach it.

So, I need that when external server detects that I want to see internal server content, it ask to internal and external itself answers.

View 2 Replies


ADVERTISEMENT

Replicating Internal Redirect Behaviour For Redirecting To External Site In Htaccess

May 19, 2009

I have the following RewriteRule directive in my htaccess file on my localhost:-

Code:
RewriteRule ^([a-z-]+)/?$ test.aspx/app.nav/params.class.com${meta:$1}/whatever${meta:$1}
The rewrite rule works perfectly, since the revised URL is still preserved when after it is executed; I presume this is since my old URL is relative, and it's performing an internal rewrite.

However, when I make my old URL absolute (adding an external address to it), whenever I execute my new URL, I'm redirected to the external sites URL (which includes the same URL parameters as my internal 'test.aspx' page), like below:-

Code:
RewriteRule ^([a-z-]+)/?$ http://www.example.com/test.aspx/app.nav/params.class.com${meta:$1}/whatever${meta:$1}
Purely for demo purposes, upon execution, I'd like my new URL to be preserved in the address bar whilst, I'm redirected to the external site.

Is this possible to do - something like forcing the behaviour of an internal rewrite?

EDIT: I've done some investigating and people with similar problems have suggested using the Passthrough handler - although I'm slightly unclear as to what this does exactly, I gave it a go (adding '[PT]') at the end of RewriteRule, but unfortunately this didn't make any difference.

Is mod_proxy a possible solution?

View 1 Replies View Related

Redirect / Rewrite To An External Server

Oct 27, 2009

app and content are separate physical machines

I want [url]to be processed by app directly, which it's doing now

I want [url]or [url]to display content from content, either directly or through a hidden/stealth redirect.

How can this be accomplished? How else can I have one URL serve from two different servers other than using subdomains?

View 1 Replies View Related

Apache :: Internal Server Redirection Vhost

May 26, 2013

I have a Public [82.x.x.x] and Private Apache Servers [192.168.20.100], and wish to redirect a series of subdomain requests i.e. for joomla.example.com or moodle.example.com on 82.x.x.x => joomla.example.com or moodle.example.com on 192.168.20.100.

joomla.example.com [82.x.x.x] returns joomla.example.com [192.168.20.100]

moodle.example.com [82.x.x.x] however returns joomla.example.com [192.168.20.100]

VHOST Configuration on [82.x.x.x]:

<VirtualHost *:80>
ServerName joomla.example.com
RewriteEngine On
RewriteRule ^(.*)$ http://192.168.20.100$1 [P]
</VirtualHost>
<VirtualHost *:80>
ServerName moodle.example.com
RewriteEngine On
RewriteRule ^(.*)$ http://192.168.20.100$1 [P]
</VirtualHost>

----------

VHOST Configuration on [192.168.20.100]

<VirtualHost *:80>
# joomla.example.com>
ServerName joomla.example.com
ServerAlias joomla.example.com
DocumentRoot /var/www/joomla/
ServerRoot /var/www/joomla/
ScriptAlias /cgi-bin/ /var/www/~cgi-bin/joomla/
ErrorLog /var/www/~log/joomla/error.log
CustomLog /var/www/~log/joomla/access.log combined
ErrorDocument 404 /404.htm

[Code] ......

View 2 Replies View Related

Apache :: Internal Server Error 500 After Moving From 2.2 To 2.4

Jun 3, 2014

I'm moving a site (Windows XP) from Apache 2.2 to the Apache Lounge server 2.4.9 under Windows 7.I exchanged httpd.exe and all modules and the server runs fine when I type localhost into the URL field of Firefox.But as soon as I type in the site name which I have assigned a VirtualHost to, I'm getting an Error 500 (Internal Server Error).

View 1 Replies View Related

Apache :: 500 Internal Server Error After Update

Jan 17, 2015

I've been running my website for years and now yesterday I update 2 files, the same way I always do, and when I try to load them in a browser I get:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

The log says this:

[my ip] - - [17/Jan/2015:00:07:55 -0500] "GET /site/index.php HTTP/1.1" 404 - "-" [my agent string]

Permissions are 644, same as for the other files. I haven't encountered anything like this before and am totally stumped.

View 1 Replies View Related

Apache :: ODBC - Empty Username Causes Internal Server Error

Sep 29, 2014

I am using user authentication with the following components:

Apache/2.4.10 (Win32) + mod_auth_basic + mod_authn_dbd + mod_dbd + ODBC Driver + Microsoft SQL Server 2008(SP3).

It works fine except when I do not provide any username when browser asks for username and password. In this case I receive the "Internal Server Error" as the response instead of "Unauthorized" response.

The most interesting part of the error.log is:

[Sat Sep 27 21:23:17.639860 2014] [authn_dbd:error] [pid 1208:tid 1636] [client 127.0.0.1:1363] AH01656: Query execution error looking up '' in database [[dbd_odbc] SQLBindParameter returned SQL_ERROR (-1) at apr_dbd_odbc.c:604 [Microsoft][ODBC SQL Server Driver]Invalid precision value HY104 ]

The AuthDBDUserPWQuery directive in my httpd.conf is:

AuthDBDUserPWQuery "SELECT password FROM member WHERE CONVERT(VARCHAR(10), member_Index) = %s"

And the member_Index column in the database is smallint.

View 5 Replies View Related

Apache :: Need To Redirect Root Of Server

Oct 9, 2014

creating a basic redirect. What I need is to redirect the root of my server 173.x.x.x to a file called test.php in the root of my folder.example: when I go to http://173.x.x.x I get redirected to http://173.x.x.x/test.php..

View 3 Replies View Related

CPanel Multiple Network Adaptors (1 External, 1 Internal)

Jun 27, 2009

We currently have two dedicated servers connected to each other with a crossover cable, and each one also has its own external connection. One is running Server 2k3, one is running CentOS with cPanel. What we want to do is configure the so they can run backups to each other through the crossover cable, saving our bandwidth

On the windows machine we have configured it with a static IP of 192.168.0.1 and subnet of 255.255.255.0. This works fine and the machine is running well, on the cPanel machine, when configuring eth1, like so:

HWADDR=**:**:**:**:**:**
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.0.2
USERCTL=no

the windows and cpanel machines can talk to each other fine through the crossover cable (pinging 192.168.0.1 + 2) but then the cPanel machine becomes unaccessable externally, i.e. ping requests time out and no websites on it can be hosted untill eth1 is disabled and the server rebooted.

View 7 Replies View Related

Apache :: Configuration Error Causing Internal Server Error

Oct 10, 2012

- Apache version : 2.2.21
- operating system : MAC OS Lion Server
- mod_ssl : 2.2.21

I have a certain area on a homepage which is protected by an .htaccess file. The code of the .htaccess file is the following:

Code:

AuthType Digest
AuthName "Password Required"
Options +Indexes
# code for HTTPS
RewriteEngine On
RewriteCond
%{SERVER_PORT} !^443$
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI}
Require valid-user

Usually everything has been working fine with this .htaccess-file until today. There hasn't been any change on the system.

If you click on the hyperlink to the restricted area the login window appears where you need to type in your username and a password. After typing in these data the following message appears in the browser:

500 Internal Server Error

The server encountered an internal error or
misconfigruation and was unable to complete your request. (…)

The apache error log file contains the following message:

Request exceeded the limit of 10 sub request nesting levels due to probable configuration error.

Use 'LimitInternalRecursion' to increase the limit if necessary.
Use 'LogLevel debug' to get a backtrace.

The increase of the LimitInternalRecursion does not solve the problem. So I switched the LogLevel in the httpd.conf file from warn to debug and looked again on the entries of the error log.

The following appeared (I have replaced ip addresses, usernames and URL by xyz or <URL>) :

Code:

[error] [client xyz]
mod_digest_apple: Client is using a nonce not issued by this server for this context:/rb/Vorlesung/WS12/Downloads/, referer:
http:<URL>

[Code] ....

View 3 Replies View Related

Redirect A Subdomain To External IP Address

Oct 30, 2008

Is there any way to redirect a subdomain on a machine A to point to an IP adress on a second machine B.

View 11 Replies View Related

Exim Mail Server :: Your Outgoing SMTP E-mail Server Has Reported An Internal Error ...

Jul 2, 2008

I getting this error when our clients are sending mail from outlook but they are able to send mail from webmail.

we are using exim mail server and whm . i can't understand where is problem , anybody can help me ?

Sending' reported error (0x800CCC6A) : 'Your
outgoing (SMTP) e-mail server has reported an internal error. If you
continue to receive this message, contact your server administrator or
Internet service provider (ISP). The server responded: 451 Please try again
later.

View 4 Replies View Related

External Mail Server

Apr 3, 2008

we have a cpanel server that has been running our website and emails. We have just obtained another dedicated server. I would like to keep our first server running our website and move all of our email for the domain to the new server. The second server has the same setup and runs cpanel as well. Can anyone point me in the right direction to achieve this?

View 3 Replies View Related

External Mail Server

Jun 27, 2007

On a CPanel server, I have one account where mx records are configured to route all the e-mails to external mail server. Everything works great, except when the e-mail is from another account on the same CPanel server, it doesn't reach external mail server, I think it goes to e-mail box on CPanel server.

Is there a way to fix it? (How to send e-mails from the CPanel server to external mail server?)

View 4 Replies View Related

External Mail Server

Jan 2, 2007

I have a web server and two DB servers. I use a third party DNS solutions. I would like to move mail to a totally separate server.

My question is... How exactly would I do this? I assume that I install something like exim and then use the PHP mail function like normal except configuring it to send via the new servers IP address.

Then I suppose I would create a record for mail.mydomain.com pointing to the new server and then create an mx record to use mail.mydomain when receiving mail from mydomain.com.

View 2 Replies View Related

External Domain Name Server (DNS) Providers

Feb 9, 2005

Im setting up a few servers under one domain name and am in need of a external DNS service provider. Does anyone have any suggestions on who I should go with?

View 7 Replies View Related

Server With Multiple External IP Addresses

May 20, 2009

We require a server with 10+ IP addresses (Each one with a separate OS and external IP Address, i.e myip.dk)

This is to be used as an added security level for our employees logging into our system from outside the office. Our system monitors the IP Address and we need to restrict access to certain items depending on the IP. We basically would like to set up multiple VPS on one server.

Can you confirm how this would work?I know we can buy a Windows VPS for around £15, but we need multiple of these (10-20)and figure our own server might be the way forward.

View 2 Replies View Related

Mailshot And External Mail Server

May 11, 2008

way of going about the following:

I have a client who has hosting with another company for their website and they have their own internal MS Exchange server for email...

In order to switch the hosting to one of my servers they just need to alter the A record for the website to my webserver's IP address at the registrar - correct?

They also want to start sending a "mailshot" to existing clients - what is the best way of doing this? I have no experiance of Exchange Server so I am thinking of running something simple like phpList on the webserver but how can this be configured to use their Exchange Server?

I am thinking that if I just setup phplist as normal then the emails it sends would bounce, is the trick to setup phplist differently or to change the servers DNS settings for that domain?

the server is running CentOs and cPanel

View 4 Replies View Related

Allow External To Access Mysql Server

May 11, 2008

how I can do to allow External Access Mysql Database on my server ? What's the procedure ?

View 1 Replies View Related

Can't Access My Local Web Server By Its External IP

May 24, 2008

I have a local web server that I want to make available outside of my local network of two computers. I configured NAT at my router, configured the firewall. I Typed the external IP and got nothing, while I still was able to access my web server by typing "localhost", I tried both IIS and Apache, but what is interesting is that fact that the other people can access my web server via that external IP, I just cannot access it from my local network.

View 4 Replies View Related

500 Internal Server Error

Mar 6, 2009

I am getting 500 Internal server error.What may be the reason ?

The site was running fine till yesterday.

View 5 Replies View Related

500 Internal Server Error

Jun 2, 2009

I run a proxy. First, I was on shared hosting. Worked for 2 months. then, bam! 500 internal server error.

I moved to a smaller VPS with 128 MB RAM. Worked for 30 min, then 500 internal server error again...

So now I moved to a larger VPS with 512 MB RAM, 1 GB burstable. Worked for 2 days, and now the 500's is back...

Rebooting the VPS usually fixes it, but I can not be sure I can continue rebooting it, as I expect it getting worse later.

It usually starts with lighttpd goes insane. One minute it's using 30 mb RAM, ok that's good. Then suddenly it uses 300 mb. then 500 mb. Then the 500 internal server error occur.

So any ideas of how I should configure this so it would work in a better way?

This is filled in the error log:

2009-06-02 13:21:16: (mod_indexfile.c.182) file not found ... or so: Too many open files / -> /home/admin/datashelf.net/

View 14 Replies View Related

500-Internal Server Error

Jul 31, 2008

I just assume my files in the server of my website has some virus.

so i just delete all the files and upload it again.

But after i upload it website doesnt open.

Why?It shows the message 500 Internal server error.

View 6 Replies View Related

How Can I Fix An Internal Server Error?

Jan 22, 2008

How can I fix an internal server error?

View 7 Replies View Related

Internal Server Error

Jan 14, 2007

I have been trying to create my own web gallery using Adobe's Web Photo Gallery (as it seem to be so easy to use). I have created my gallery and it all seems to work fine when testing on my desktop. However, once I upload the files I get the error "internal Server Error"

View 5 Replies View Related

500 Internal Server Error

Jun 17, 2007

what is a 500 internal server error? i was uploading things to my site and all the sudden on one of the pages where i submit a form it gives me a 500 internal server error. i contacted support and they said they were working on it. i have tried to upload an old version of the file that worked before but it still gave me the same error. they said they would get back to me within 24 hours, its been three days and i still have the problem and no notes/email from them . does internal sever error mean its not a problem on my side or could it be some of my code causing the problem?

View 5 Replies View Related

Apache :: Capturing Internal Apache Errors Return Custom HTTP Status

Nov 15, 2013

Server Version: Apache/2.2.22 (Unix)

On our production service, we've been getting numerous malformed POST requests to some of our CGI scripts that are showing up as 500 errors in our logs. They are malformed in the sense that the actual content length doesn't match the Content-Length specified in the request.

Here's the most trivial example I can come up with that reproduces the problem for us:

POST /some_valid_alias HTTP/1.1
Host: example.org
User-Agent: Arbitrary/1.0
Content-Type: multipart/form-data; boundary=---------------------------41184676334
Content-Length: 769
-----------------------------41184676334

In addition to the 500 error in the access log, we see the corresponding error in the error log:

(70014)End of file found: Error reading request entity data

Based on the nature of the POST request and the error response, it does appear that Apache is doing the right thing here.

The POST never actually makes it as far as the script being targeted (/some_valid_alias in the above example); in other words, Apache returns 500 to the client, writes the error to the error log and never executes the script.

Is there a way to capture/avoid internal Apache errors like 70014, and return some other HTTP status besides 500 (like 403)? It's particularly annoying in our case, because our server sends us an email for all 500 errors.

So far, our best "defense" against these 500 errors is to disallow POST for these aliases, which normally just ignore the POST data anyway (when the request is not malformed):

RewriteCond %{REQUEST_METHOD} ^POST$
RewriteRule ^/(some_valid_alias)(.*)$ $1$2 [R]

But this won't work for all our scripts, because in some cases we do want to permit POST.

View 2 Replies View Related

Server Load - Balance With External Host

Nov 7, 2008

I have one dedicated server that hosts a PHP/MySQL highly dynamic site. In peak periods my site is starting to get high load (still very manageable but enough to warrant thinking about the future). My site is mostly images - photo gallery type stuff.

I've thought about using Amazon WS to host images from my site but it works out too expensive as do other similar Content Delivery options.

From what I can tell, when the load is high, mysql CPU usage isn't too bad, it hovers around 20% and peaks to 60% every 20 seconds or so, so my assumption is that the load is partly from apache (I see lots of apache processes in peak periods).

I am considering just get a cheap VPS hosted elsewhere that will be used as a static image/file server to release stress from my main server- How much stress would this help release?- Any other suggestions on solutions?

- I would have to do quite a bit of work to my application to ensure images are posted to this server and not my main server which seems a pain (or cron these tasks).

View 0 Replies View Related







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