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


ADVERTISEMENT

Apache :: Multiple Server Redirection

Jul 16, 2015

Our servers has been updated recently and my site is not working properly. It was working before the server change. When I click on the links, it doesn't update correctly, instead it gets the last cached data. I have to refresh each link for it to update which shouldn't be the case. I'm a front-end and have no access to servers. Could this be server-related?

View 1 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 :: 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 View Related

Apache :: Set Up SSL (vhost) For Mailman

Jun 18, 2015

we are going to setup SSL on a server which host mailman (and the Webgui).

It's a SLES11 system and we configured a vhost with ssl. How do we have to combine the vhost and the mailman config?

View 11 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

Webmail Roundcube Apache SSL Per Vhost

Mar 9, 2015

I have more than 1 domain on my VServer and roundcube and all of its templates only allow me to modify webmail.domain.tld...so I can setup 1 website correctly but all the rest will have the wrong SSL cert.How can I setup different ssl cert for Webmail with Apache as Webserver and roundcube as webmailer? I think I should modify the vhost confs of roundcube into /etc/apache2/plesk.conf.d/webmails/roundcube/ but I did not find a working solution.

View 1 Replies View Related

Cpanel Apache Status Vhost (unavailable)

Jan 27, 2007

In Cpanel, If i click on Apache Status it tells me aload of website that have been visited recently, under the vhost column. It shows this but sometimes under those it shows aload of (unavailable). Why is this. Is this normal?

View 2 Replies View Related

Apache :: Multi VHost / Single File

Mar 20, 2015

I'm actually working on a project in wich one I use Zend Framework 2. In this project I have 4 websites. (this is require, I don't want to change it).

I have 1 Virtual Host for each website:

- com-mywebsite.com
- cp-mywebsite.com
- pos-mywebsite.com
- ap-mywebsite.com

Each Virtual Host redirect to the same folder and same file because everything is in the same project so same entry point (same index.php)

actually if I type each url in a browser, they all redirect to the same part of my project so I added some routes in ZF2 to access to one website and not another :

- com-mywebsite.com/com
- cp-mywebsite.com/cp
- pos-mywebsite.com/pos
- ap-mywebsite.com/ap

This is a quick and dirty fix because I also can access to the ap website with this url : com-mywebsite.com/ap

I'd like every website to be accessed from their root:

- com-mywebsite.com
- cp-mywebsite.com
- pos-mywebsite.com
- ap-mywebsite.com

And I don't want to display /something after it to access to the website even if after you can access to some other pages of each website.

View 1 Replies View Related

Apache :: Every Path Is Forbidden After Enabling Wildcard Vhost

Aug 3, 2014

I've been developing websites using Apache on various Ubuntu laptops over the years. I just set up a new laptop with Apache and it worked fine. If I went to localhost in my browser then it showed the default page. So far, so good.

I then added a file to sites-available to add wildcard virtual hosts. This lets me use convenient urls while developing sites on my laptop. Once I enabled this site, every url that resolved to localhost became 403 Forbidden, including urls that should return 404. Here is an example entry from other_vhosts_access.log...

View 5 Replies View Related

Apache :: Htaccess - Silent Redirection From One Directory To Another?

Sep 26, 2013

apache configuration. I try to achieve the functionality in which the user type in browser: mysite.com/projects

View 1 Replies View Related

Apache :: HTTP To HTTPS Redirection And Preserve Canonical

Aug 26, 2014

I want to rewrite my all site urls from http to https and also preserve URL canonicalation like all url redirected to http://www. How to achieve this goal?

View 1 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

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

IIS Transparent Server-side Redirection

Sep 18, 2008

I've been asked to find a way to host our intranet externally without opening up the network.

The webserver accessible to the public domain is within an dmz. The intranet I need to serve is within our internal network.

I've managed to convince our network admin to open port 80 on the server running the intranet but I can't seem to find a way to proxy the content from the intranet server, through the webserver and to the user.

View 3 Replies View Related

Domain Name Server (DNS) Redirection / Setting Up Zone(s)

Oct 24, 2007

I have a quick question about some DNS zones I'm trying to set up for a customer. I figured I would try asking the community before bugging our top-level admins (they have enough to do already, and I'd rather learn this myself).

We have a customer for whom we are managing their DNS. The site is actually hosted elsewhere, but the DNS originates on our server.

They have another site that is hosted with us, and they would like to set up a subdomain redirect from the remotely-hosted site to the site hosted on our hardware. So, the situation looks something like this:

example.com : hosted elsewhere (primary IP not ours), DNS with us
FooSite.example.com : redirect this to www.FooSite.com

I could edit httpd.conf, but it would be easiest (for firewall reasons at the moment) if I could enter in the proper zones via WHM zone editor. I'll be able to see the results either way. I tried setting up the 'A' and 'CNAME' records, and I got as far as directing the 'A' records for the subdomain to the local IP, but I'm not sure how to finish it off (assuming I'm going down the right path). My own knowledge level in this regard is somewhere between novice and intermediate (which is why I have partners and admins ).

View 10 Replies View Related

Apache :: Internal URL Rewrite Across Subdomains

Jun 8, 2013

I want to rewrite across subdomains, e.g. requests for sub1.mydomain.com/foo.htm -> www.mydomain.com/foo.htm. I can do

this with something like:

Code:
RewriteCond %{HTTP_HOST} ^sub[0-9].
RewriteRule (.*) http://www.mydomain.com/$1 [R=303,L]

I want to make it an internal rewrite though, not an external redirect. If I remove the [R=303] I still end up with a redirect (a 302). I assume mod_rewrite is forcing an external redirect because it's to a different [sub]domain.

Is there any way I can overcome this and make the change internal?

View 2 Replies View Related

Apache :: Setting Up Internal Webpages

Oct 30, 2014

This is just an internal server setup to learn web programming and looking to create a environment close as possible to the real world setup. I'm using xxxx.dlinkddns.com

View 1 Replies View Related

Apache :: Excessive Internal Redirects Error

Nov 4, 2013

What was causing this:

I installed a url shortner script but the link that the script creates takes you to a server error page.

I viewed the logs and I get this error over and over again.

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

this is what is in my htaccess file

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

View 1 Replies View Related

Apache :: Conversion Of Internal Links To Correct URL

Aug 22, 2014

A dynamic php+mySQL site was converted to a static html by mirroring (wget). The result was that each page became an html file named some-page.html

View 4 Replies View Related

Apache :: Redirection Page From Subdomain To New Subdomain

May 11, 2015

Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).

I need to redirect page from 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 and there are no clear rule for redirection (no regex )

So I need to redirect every page but syntax:

Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage

doesn't work!

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

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







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