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.
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.
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).
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.
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..
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:
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.
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>
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.
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?
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?)
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.
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?
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.
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?
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.
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/
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"
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?
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:
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):
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).