Uniform Resource Locators are a generic scheme for specifying the location of resources. They are most commonly used for identifying locations on the Internet (such as webpages and email addresses) but can be used to reference almost anything.

learn more… | top users | synonyms

-2
votes
1answer
58 views

Apache not finding file from URL request

I'm trying to access a file from my localhost via http://localhost/profile-pics/default.jpg however apache keeps saying that the url doesn't exists 404. How can I configure apache to find my file? ...
0
votes
1answer
60 views

How can I rewrite an internal/LAN URL using Apache rewrites? [duplicate]

Is it possible and how could I rewrite http://192.168.1.1:4950/hello to, e.g., http://home.hello I know how to use .htaccess to rewrite just part of URL's but can't figure out how to rewrite whole ...
1
vote
1answer
539 views

Centralized IIS to redirect to other IIS servers

Basically what i'm after is to have a centralized IIS Server on the Local LAN where port 80/443 would be forwarded to from the router. Then through this server it can forward/redirect the requests to ...
1
vote
4answers
1k views

Allow users to access only a few websites [closed]

I want to block my network users to access most of the external websites. Some users may need access to Facebook (like the users from marketing department), while others may need access to banks ...
0
votes
2answers
169 views

can not access portal after specifying port in URL

Django webservices is running on port 8000 (pyhon manage.py runserver 0.0.0.0:8000) I am able to access using , https://ec2-72-44-51-113.compute-1.amazonaws.com/admin/ but if I specify port in url, ...
0
votes
1answer
216 views

Rewrite certain URL in Nginx such that another app will serve it

I have a config file for mydomain.com which is served with Drupal. Problem is this rewrite rule takes the control over any request: if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 ...
0
votes
2answers
578 views

Apache: relative paths appended to current URL instead of added to basename

I'm new to web servers, so please be gentle: I've set up a new apache2 server on a Mint System (Ubuntu-base, which also means Debian-based). I've also installed a Django backend and the wsgi_mod ...
1
vote
1answer
505 views

Is there a limit on the length of URLs when using Amazon ELBs? If so, is there a way to increase it?

We appear to be encountering an error due to Amazon ELBs truncating a long (over 1K characters) URL. I have searched through the usual suspects, but can't find any discussion of URL length limits for ...
0
votes
0answers
550 views

How to prevent IIS 7 to partially decode REQUEST_URI? [duplicate]

I have IIS 7 on Windows Server 2008, with PHP support (5.3.15) I have noticed a difference compared to an Apache 2 environment, with the content of PHP variable $_SERVER['REQUEST_URI']. Basically, ...
0
votes
1answer
271 views

converting Lighttpd rule to apache rules

I am using mediawiki on my localhost server. my url for now is 127.0.0.1:8080/wiki/index.php/Main_Page But i want to convert above mentioned url to wiki.127.0.0.1:8080 or something like ...
0
votes
1answer
709 views

Getting “403 - Forbidden: Access is denied” when hitting the URL without “www” prefix

I'm facing problem in my domain area. when i hit for example http://abc.com then I'm not able to access the site which are hosted on my domain. It gives the below error 403 - Forbidden: Access is ...
0
votes
2answers
103 views

subdomain.domain.com works, but still accessible via domain.com/site

I've got a site installed at, for argument's sake, /var/www/site, and have a subdomain set up so that it can be accessed via subdomain.domain.com. How do I stop it also being accessed via ...
1
vote
2answers
68 views

Moving from <hostname>:1234 to <hostname>/app

I'm bringing up my first production-level(-ish) server and have installed and configured a couple of python web applications, which I have to access like so: <hostname>:8000 ...
-2
votes
2answers
736 views

How to hide query string in url?

The below is the .htaccess code which is causing the rewrite in URL, RewriteRule ^24-(.+)~(.+)\.html$ gallery_catagory.php?gallnm=$1&GalleryID=$2&%{QUERY_STRING} [nc] but still I can see ...
2
votes
1answer
738 views

Asterisk IVR - input variable and go to an outbound URL

I have an Asterisk outbound IVR system set up, and I'd like it to talk to my LAMP stack on a different server. I've set up the PHP end to receive data from the IVR server and record it in MySQL, but I ...
1
vote
0answers
96 views

how can apache run multiple applications on same server with different path

When i ssh to amazon ec2, then pwd /home/ubuntu ls app_1 app_2 app_3 app_4 Considering i have mapped my ec2---*- address to some apps.site1.com How can i have multiple rails applications ...
0
votes
1answer
671 views

Reverse proxy in IIS to local TomCat

IIS has several websites: domain1.com a.domain2.com b.domain2.com There is also a TomCat running on localhost:8087 The challenge is how to expose the TomCat externally as b.domain2.com ...
8
votes
2answers
4k views

Disabling URL decoding in nginx proxy

When I browse to this URL: http://localhost:8080/foo/%5B-%5D server (nc -l 8080) receives it as-is: GET /foo/%5B-%5D HTTP/1.1 However when I proxy this application via nginx (1.1.19): location ...
1
vote
0answers
384 views

nginx proxy_pass to different backends based on location / passing rewrited url

What the quickest and cleanest solution if you want to proxy URL request to two different backends via proxypass based on location. location /app1/ { alias /var/www/ruby/public; ...
0
votes
4answers
163 views

Calling a specific URL daily

I need that every night at 2:00 am a call to a specific URl is made. For this reason, I inserted in the cronotab services the following: crontab -e 0 2 * * * wget -q -0 - "http://MYWEBSITE" But ...
0
votes
1answer
989 views

How do I set up Tomcat 7's server.xml to access a network share with an different url?

I have Apache Tomcat 7.0 installed on a Windows 2008 R2 Server. Tomcat has access to a share '\server\share' that has a documents folder that I want to access using '/foo/Documents' in my web ...
-1
votes
1answer
756 views

How can I configure apache to respond 400 when request contains an invalid byte sequence?

On web application someone is making invalid HTTP request containing invalid bytes. According to RFC 3986, section 2 only ASCII characters are allowed in the HTTP Request line. However I am receiving ...
4
votes
1answer
2k views

Prevent URL Rewrite rules from being inherited by subdirectories in IIS7

I have a URL Rewrite setup for clean URLs in a CMS and my web.config looks like this: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> ...
0
votes
1answer
479 views

rewriting a URL where a subfolder should not be visible

I have multiple domains setup with my webspace (all via a hosting provider) So www.maindomain.com links to /maindomain on my webspace. www.domain2.com links to /domain2 on my webspace. Pretty simple ...
2
votes
4answers
117 views

Change the prefix of a website? (IE: www.example.com/bob_11 -> bob_11.example.com)

Some websites have variable prefixes. For example: www.example.com/bob_11 is presented as bob_11.example.com. How do I do that? I assume its a sub-directory, but can't find anything explaining how to ...
0
votes
1answer
45 views

.htaccess rewrite

I want to change URLs like below: http://www.gsmsite.nl/zakelijk/product/phone?b=met-internet-250plus To: http://www.gsmsite.nl/zakelijk/product/phone?bundel=met-internet-250plus How ...
1
vote
0answers
524 views

Outbound URL rewrite IIS 7 ARR crashing application

I'm having trouble with setting up a reverse proxy outbound URL redirect in IIS 7 with ARR. The domain has 2 inbound URL rewrites and 1 outbound URL rewrite. The inbound ones work fine and I haven't ...
1
vote
3answers
6k views

why i cannot download jdk from oracle web site directly without AuthParam?

that is download with the following command, why it fails to download that file? wget http://download.oracle.com/otn-pub/java/jdk/6u35-b10/jdk-6u35-linux-i586.bin the following command works, but ...
0
votes
1answer
35 views

IIS 7 Determine popular / commonly used URL

I'm trying to find the right performance counter in IIS 7 which would tell me what the most commonly requested URL is, but I think I may be looking in the wrong place. How would I go about finding ...
1
vote
1answer
99 views

Issue with Tomcat application url

At domain my.test.org I have the following setup: A Tomcat6 running on port 8080 A redirection from port 80 to 8080 at the OS level (using NAT) An application deployed in Tomcat at ...
1
vote
1answer
378 views

Rewrite rule for language fragments in nginx

I want to rewrite some url's in nginx and I have an wordpress site with URLs like this: http://mydomain.com/en/my-content How can is remove the en/ with nginx? Thanks a lot. Peter
0
votes
1answer
1k views

Redirect 404 errors without rewriting the URL

Is it possible to have an erroneous URL remain in the address bar while redirecting the user to a URL within my domain? I want www.domain.com/forum to be the actual site being served in all 404 ...
1
vote
2answers
3k views

Difference between accessing a website using Local host and IP address

I have developed an ASP.NET website and deployed into my IIS server. Now to see that my IIS is installed fine, I type local host in my address bar, and I get the welcome screen of IIS and its ...
0
votes
2answers
46 views

apache URL issues

I'm sure someone has asked the same question on serverfault but I just don't know what to look for. I have two subdomains from different hosts in my school. eg. One is: ...
0
votes
1answer
508 views

very simple mod_rewrite replacing “forums” to “forum”

Can somebody help me with a mod_rewrite rule for this situation? I only need to remove the ‘s’ from a forums segment. From www.test.com/test-forums/anystring/anystring or ...
0
votes
1answer
66 views

How do I Nginx rewrite with query?

how do I rewrite this url from: mysite.com/folder1/file.php?kw=KEYWORD to mysite.com/folder1/file/KEYWORD and ...
2
votes
1answer
48 views

Access all websites on a server via a shared domain

My setup is: Nginx(80) as a transparent proxy Apache(81) as back-end web server The paths to each domain on the server are like this: /var/www/$username/data/www/$domainname Of course to access ...
1
vote
1answer
1k views

HTTPS on relative URLs?

I just installed an SSL certificate on my site to protect a registration page that I have, but I'm trying to figure out how to get the "https" in my URL. I have created a template in Dreamweaver with ...
1
vote
3answers
2k views

How can I disable Kerberos authentication for only the root of my site?

I have Kerberos-based authentication and I want to disable it on only root url: http://mysite.com/. And I want it to continue to work fine on any other page like http://mysite.com/page1. I have such ...
3
votes
2answers
982 views

How to change the URL on my Amazon EC2 webserver

I am at the point in playing around with EC2 that I have launched a webserver. Right now, the website URL looks like http://ec2-<some numbers>.compute-1.amazonaws.com/ I am evaluating the ...
0
votes
1answer
948 views

nginx short urls for mediawiki

I am trying to do short URLs for a MediaWiki site. The wiki is in a subdirectory mydir (http://www.example.com/mywiki). I've already set up rewrites in /etc/nginx/sites-available so that example.com ...
0
votes
1answer
225 views

Is it possible to mod_rewrite the full url or mask the actual url altogether?

I've been looking at the Heroku custom domain feature, which enables to change a url from subdomain.heroku.com to www.whatever.com. Is something like this possible with mod_rewrite or how is ...
1
vote
2answers
200 views

Check GET value with htaccess?

I need help with setting up a rule inside htaccess that does the following, Whenever the requested URL contains keyword love then redirect the user to another URL or maby show a 404 page. Clarifying ...
1
vote
2answers
596 views

How to get a custom Amazon s3 url?

Right now when I upload a file to my Amazon s3 buckert the url to the file looks like this: https://s3.amazonaws.com/<MY BUCKET NAME>/filename.extension I would like to use something like ...
1
vote
2answers
427 views

Should my web server add trailing slashes to URLs or remove them?

I've read in several places that you should decide whether you want trailing slashes or no trailing slashes in your site URLs and stick to your choice consistently. This makes sense, but which should ...
0
votes
2answers
606 views

Configuring the hosts file to point to my server

I have a somewhat annoying problem in website development/deployment process; when I work locally on my server, the address of my program is localhost:8080/MYSERV/..., whereas when I deploy it, the ...
1
vote
2answers
1k views

Structuring an nginx config for static content and php

I'm trying to write an Nginx config with the following semantics, expressed in hopefully-readable psuedo-config: location /dir1/ /dir2/ { if (matches a .php file) { serve with php } else if ...
0
votes
1answer
438 views

Heroku hosted website using zerigo dns not loading for url without leading www

I've seen many questions similar to this but nothing specific to heroku and none of them are working for me. I am in China trying to access my website that I host on heroku. If I use a VPN and type ...
0
votes
2answers
154 views

Apache Rewrite Rule

Does Apache rewrite rule automatically change the URL of all pages without editing links? I tried rewriting Apache rule from .htaccess, but nothing happened, so I'm wondering if I need to edit the ...
1
vote
1answer
2k views

How to redirect an specific url with specific variables in iis

The idea is to add a rule to my iis (version 7) to redirect this http://www.mydomain.com/folder/Default.aspx?&variable1=eeee&variable2=aaa to: ...