Nginx Works With Apache

Aug 14, 2008

I am doing my web like this:

1) nginx listening at port 80

2) apache listening at port 78

3) nginx throws all shtml pages to apache

they are working perfectly, except one small thing:

I don't want any public visitor may visit port 78 directly, for now, both:

[url]

[url]

are working for visitors.

Anybody knows how to block/hide port 78 to the public access?

my nginx config snippet:

Code:
location = /index.shtml {
proxy_pass [url]

}

my apache2 config snippet:

Code:
Listen 78
If I make apache as follows:

Code:
Listen 127.0.0.1:78
I will get 502 bad gateway when I visit:

[url]

View 1 Replies


ADVERTISEMENT

.htaccess Issue With Apache 1.3, But Works On Apache 2.2

Mar 22, 2008

I have the following Apache redirect code in .htaccess:

RewriteRule ^sap-latest-news/([0-9]*)/([A-Za-z0-9_-.]*).htm$ /domain.com/app/modules/content/latestNews.php?id=$1 [L]

This redirect works fine on Apache 2.2.8, but doesn't work on Apache 1.3.41

The following is the entry from error_log:
RewriteRule: cannot compile regular expression '^sap-latest-news/([0-9]*)/([A-Za-z0-9_-.]*).htm$'

A simple Rewrite is working fine in Apache 1.3, but the above regualar expression doesn't seem to be working on Apache 1.3. Does anyone know whether Apache 1.3 doesn't support it?

View 3 Replies View Related

Apache Not Works

Aug 23, 2007

I don't know why apache not works you can demo here : [url] Two command i've tested:

- /etc/init.d/httpd status

Quote:

Not Found
The requested URL /server-status was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
_________________________________________________________________

Apache/1.3.37 Server at server.xxx.org Port 80

-/etc/init.d/httpd start

Quote:

/etc/init.d/httpd start: httpd (pid 17885) already running

How to enable apache software .

View 3 Replies View Related

Apache Works On WAN, IIS Doesn't

Jan 10, 2009

I am currently running a dev server out of my home. The setup is as follows:

Server is Windows Server 2008.

Apache is running, listening on port 88. On this, I have subversion and TRAC.
IIS is running, listening on default port 80. On this I have an ASP.NET web site that pulls its code from subversion.

Router is a standard Linksys WRT54G.

Router is open as can be, just to test it. Server is in DMZ, all ports are forwarded to its IP (TCP and UDP), etc. This will change, but during setup state, it is what it is.
default.aspx is set up as default document in IIS. Folders are mapped correctly. The file exists in the physical directory it's looking at.

the only site and only Application pool in IIS are for the site in question.

The issue:

Both Apache and IIS work great on my local network.

Both Apache and IIS work great on wireless network.

However, in the wild, WAN works for the apache (port 88) but not IIS. Typing in http://[ip address]:88 or any of the subdirectories works fine. Typing in http://[ip address]/default.aspx returns, in Firefox, "Connection Interrupted -- the connection to the server was reset while the page was loading".

Windows firewall is disabled and unbound from all protocols. As specified, I've opened up the server and router as much as possible temporarily in order to allow me to lock it down again step by step once I have the issue solved.

View 2 Replies View Related

Apache :: SSL Works Partially

May 12, 2014

I am trying to make Apache SSL work on my SAP BO Environment. I have implemented SSL parameters and conf and now when i access:

http://localhost:<portno>/index.html - It Works !!
https://localhost:<sslPortNo>/index.html - It Works !!

BUT, when i try to login to

http://localhost:<portno>/BOE/BI -- It works !!
https://localhost:<sslPortNo>/BOE/BI -- It DOES NOT work.

View 3 Replies View Related

Apache :: Local Server Works Once And Then Won't Again

Oct 3, 2013

I found a socket available other than 80 which would not allow me to use. I set it in the conf file as 1800 and then go to apache/bin directory and load httpd.exe. When I go to the browser, I have to type in http://localhost:1800 for it to work once. If I close the browser and try again, or I try a php file, it says it can't find localhost. I have to stop httpd.exe and reload, then it will work once.

Do I have to find a way to use socket 80 for it to work?

View 2 Replies View Related

Apache :: Localhost Works - Remote Fails

Nov 22, 2013

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).

View 4 Replies View Related

Apache :: URL Rewritten But Still Original One Also Works And Not Redirecting

May 13, 2014

RewriteRule ^massaggi-([^/]*)$ /an.php?prov=$1 [L]

View 1 Replies View Related

Apache :: Mod Rewrite Not Works With Existing Directory

Mar 14, 2013

Why my rules don't work as I want?

I want to make hidden rewrite from url like host.sk/dir/dir2

View 4 Replies View Related

Apache Virtualhost Order Deny - Allow Works Only On Localhost

Jun 17, 2013

I have vhost setup for test of a new website. I want to allow access on the localhost, and, from one IP from the Internet (redacted). Apache serves the site just fine on the server but I can't access the site from my the "xxx...." IP.

I'm using a physical path to test from the public IP as follows:

xxx.xxx.xxx.xxx/~user/test/index.html

View 3 Replies View Related

Apache :: Virtualhost Order Deny Allow Works Only On Localhost

Jun 17, 2013

I have vhost setup for test of a new website. I want to allow access on the localhost, and, from one IP from the Internet (redacted). Apache serves the site just fine on the server but I can't access the site from my the "xxx...." IP.

I'm using a physical path to test from the public IP as follows:

Quote:
http://xxx.xxx.xxx.xxx/~user/test/index.html

Apache v2.2
RHEL6
UserDir configured/running
SuExec configured/running

Below is the relevant vhost block in httpd.conf:

Code:
<VirtualHost *:80>
ServerName test
ServerAlias test
DocumentRoot /home/user/public_html/test
<IfModule mod_fcgid.c>

[Code] .....

I don't have a FQDN as yet, so I just made a entry in /etc/hosts as follows:

Code:
127.0.0.1 test

Here is an excerpt from the Apache error log:

Quote:
[Mon Jun 17 12:02:16 2013] [error] [client xxx.xxx.xxx.xxx] client denied by server configuration: /home/user/public_html/test/index.html

I've checked the firewall and the /etc/hosts.allow- that's not it. I've read the Apache docs and in the vhost block Allow should be evaluated last, and apparently is matching localhost but is not matching my IP.

View 5 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 Vs Nginx (mod_php VS Php-fpm)

Jun 23, 2009

Here is the comparison between Apache and Nginx. Request processing overhead and real-world application performance measurements included.

[url]

View 7 Replies View Related

Convert Apache To Nginx

Apr 13, 2015

I am wondering if there is an easy way to convert apache to nginx on my Plesk 12 server. Ideally, I would like to save all my hosts without having to re set them all up. I have been searching online, but haven't found a simple way to do so.

View 1 Replies View Related

NGinx Vs Apache Vs Litespeed Vs The Rest

Apr 20, 2009

According to the latest trend and technological advances, which server software should people go with from the very beginning. Which do you recommend as on today?

btw anybody has experience with all 3 (apache/nginx/litespeed) webservers?

I have -

On a common shared environment, I started off with Apache - was fine until some load started generating and it became crapache.

Then litespeed - Totally awesome, could seriously feel the difference, but its cost is something not everybody can afford.

Then nginx - Very nice, felt like litespeed only, the only difference was it got quite complex in configuring it at a later stage BUT its free'ness made me love it badly.

View 4 Replies View Related

Use Nginx Instead Of Apache In Plesk Server

Feb 25, 2015

I have a VPS running Parallels Plesk 12.0.18 Update#36 and CentOS 6.6. I'll like to move (if it's possible uninstall complete) Apache and let Nginx to manage all the request coming from outside.

View 4 Replies View Related

Optimizing For Bandwidth On Apache And Nginx

Dec 17, 2014

We'd like to use this tool from Google on our Plesk server: [URL]

is it useful getting these tools going on server, and are they worth it?

View 1 Replies View Related

Deflate / Gzip Don't Work With Nginx Or Apache

Feb 5, 2015

Whatever i try to modify configuration there is no way i can get file delivered by apache or NGINX to be deflate/gzip compressed.

OS: Debian 7.7
Plesk version: 12.0.18 Update #33

I've tried to add these lines to Nginx (Vhost directives) but it change nothing :
# Gzip Settings
gzip on;
gzip_buffers 16 8k;
gzip_comp_level 4;
gzip_http_version 1.1;
gzip_min_length 1100;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/x-javascr$ application/xml application/xhtml+xml application/xml+rss;
gzip_vary on;
gzip_static on;
gzip_proxied any;
gzip_disable "MSIE [1-6].";

I also tried to disable Nginx and configure deflate in apache with following lines (Vhost directives then in a file in apache2/conf.d) but it is the same ...

<IfModule mod_deflate.c>
# Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)s*,?s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding

[code]....

View 5 Replies View Related

Convert Apache Rewrite Rules To Nginx

Nov 24, 2012

How to convert apache rewrite rule to nginx:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^naujienos+ news.php/$1 [L]
RewriteRule ^naujienos/p(.*)$ /news.php?pg=$1 [nc]
RewriteRule ^naujienos/?$ /news.php [nc]
RewriteRule ^naujienos?$ /news.php [nc]

View 5 Replies View Related

Nginx As Apache Proxy For Static Content -- Configuration

Nov 23, 2007

I am a non-tech person trying to configure Nginx to serve static content (apache will remain on port 80 for the dynamic stuff).

Nginx is already installed, what I need is a workable configuration file for nginx so that it serves all static stuff (images and a few folders with static html) and instructions in how to create it. The server is running DirectAdmin panel, Apache 2.24, PHP 5.23 and XCache 1.2.

View 12 Replies View Related

Plesk 12.x / Linux :: Passing Headers To Apache Through Nginx

Jul 23, 2014

I want to pass the X-SENDFILE header to apache through nginx.

Is this possible or do i have to disable the reverse proxy?

View 1 Replies View Related

Www Does Not Works Http:// Works

Jan 9, 2008

I can access my web domain by typing...

[url]

But i get no server found error when i type....

www.mysite.com or [url]

I am using LxAdmin Panel, and have added (A) record for www

www A Server IP

View 7 Replies View Related

127.0.0.1 Works But Not Localhost

Jul 7, 2009

I just installed wamp here on my laptop to set up a developer machine for my website. I am used to going into the browser and just typing in "localhost" and having it bring up the test website. I'm sure there is probably something wrong with the configuration of the wamp files because it works for 127.0.0.1.

View 4 Replies View Related

How IP Transit Works

Aug 3, 2009

how IP transit works? An EU IP transit company who has 5 pop in different country has different pricing for the bandwidth. when they own ASN and have pop in 5 locations.

Whom do these wholesale bandwidth player pays? To tier1 companies?

An US wholesale bandwidth company has same pricing for USA/NL/DE but the company in EU has different pricing for SE/FI/DE/Russia.

View 1 Replies View Related

Dual DNS Really Works

May 20, 2009

i have a domain with me..and the site is live..some times the HELM panel hosted site never responds..so i have a hosting panel of c panel i have uploaded the same site in c panel as i cannot change the dns frequently so can i put all the primary and secondary for HELM and 3 and 4 for c panel... do my site and mail service will work>>??

View 6 Replies View Related

Php Passthru() Works From PHP CLI But Not Web

Nov 16, 2008

php passthru() works from PHP CLI but not web

I have a script which I use to restart processes and I am trying to make it work by clicking a button on the word. It works from running it from php command line but I can never seem to get it to work through the click of a button. Does anyone know what may be the cause of this?

here is some other observations:

old php version 4 seems to work fine, but ever since around 4.3+ it just won't work from the web.

View 1 Replies View Related

Ssh: Reboot Never Works

Mar 7, 2008

I'm finding that my server doesn't like to reboot gracefully. Either selecting "graceful server reboot" in WHM or actually typing "reboot" in SSH, which then tells me the server is shutting down. My server is then incommunicato indefinitely until I actually do a hard reset remotely.

Is this common? Is there some way to find out why this is happening?

View 3 Replies View Related







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