LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-05-2013, 01:22 AM   #1
roo4
LQ Newbie
 
Registered: Oct 2013
Posts: 5

Rep: Reputation: Disabled
Question Nginx location, return and rewrite directives


I am having a hard time learning to do return and rewrite directives.

the conditions are like gibberish to me.
I am trying to learn by example, so I made one up.
in the htdocs of my server we have this file and folders.

Code:
~:#>ls htdocs
admin.php
api (dir)
api.php
archiver (dir)
config (dir)
connect.php
cp.php
crossdomain.xml
data (dir)
favicon.ico
forum.php
group.php
home.php
index.php
install (dir)
member.php
misc.php
plugin.php
portal.php
robots.txt
search.php
source (dir)
static (dir)
template (dir)
uc_client (dir)
uc_server (dir)
userapp.php
NOW; we just focus on the uc_server client ;
Code:
~:#> ls /htodcs/uc_server
admin.php
api (dir)
avatar.php
control (dir)
crossdomain.xml
data (dir)
images (dir)
index.php
install (dir)
js (dir)
lib (dir)
model (dir)
plugin (dir)
release (dir)
robots.txt
view (dir)
A.) So what is happening is in uc_server; I think we are better to create a block location like
Code:
location /uc_server/ {

         }
and do or conditional directives in there right????

B.) I want these to happen:

Code:
http://DOMAIN.DOM/uc_server/admin.php/uc_server/ ===changes to===> http://DOMAIN.DOM/uc_server/
AND

if there is ...../install/index.php/.... in any requested links ;the "/install/index.php/" part would be omitted and the link would processed without that part.
THANKS ALOT

Last edited by roo4; 12-06-2013 at 02:46 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Nginx 301 rewrite rule Ranjith KR Linux - Newbie 2 03-25-2013 08:32 AM
nginx rewrite url ubungu Linux - Newbie 1 07-19-2012 07:51 AM
nginx rewrite mad_penguin Linux - Newbie 0 02-25-2012 12:53 AM
LXer: Using a Rewrite in Nginx for feedburner LXer Syndicated Linux News 0 06-17-2011 11:40 AM
nginx rewrite / redirect LMW Linux - Server 4 05-14-2011 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration