The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
78 views

Nginx configuration doesn't work with wordpress in subdirectory

I have a nginx installation which I need for hosting web sites in development so that other people can test them out. Right now I've set up a virtual host for a single sub-domain and in that ...
1
vote
1answer
29 views

Open litespeed and additional engines in subfolders

Last night I spent more time than I should have trying to get a. New VDS up and running with percona and open litespeed. The site I want to run ok there is structured as follows Webroot - index.php - ...
-1
votes
2answers
145 views

Apache 2.4 - allow access to blog.example.com but restrict access to example.com/blog

I'm trying to set up something like this: If I type the URL blog.example.com or www.blog.example.com, than I can access the content of /var/www/blog But if I type *.example.com/blog, I want to ...
0
votes
0answers
128 views

How to optimize Nginx config to serve Laravel from subdirectory

I have multiple applications setup on one domain, each in its own folder like this: example.com/app1 example.com/app2 ... example.com/appX My directory tree is like this: /usr/share/www/ ...
0
votes
2answers
200 views

Reverse proxy domain subdirectory to another host serving the same domain name

I have a Debian 6.0 webserver correctly running with the following setup: Nginx as front-server listening on the WAN facing interface port 80 Serving the domain HTTP mydomainame dot org (via ...
0
votes
1answer
75 views

Apache Server - Subdirectory on different server [closed]

You have 2 different servers with different IP Addresses. Both servers are Apache based. Server A: already hosts a website (http://example.com) Server B: would host a WordPress website to be in a ...
-1
votes
1answer
67 views

Should images be stored on a subdomain or subdirectory?

I'm working on a sharing app where images get stored for 24 hours. Does it bring any advantages to store them on a subdomain http://imgs.example.com instead of a subdirectory ...
0
votes
0answers
237 views

Moving gitlab-ssl to a subdirectory

I have a server with static ip, currently with this config <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName rab JkMount /rab ajp13_worker JkMount /rab/ ...
0
votes
1answer
1k views

Nginx: Rewrite/Redirect URLs in a subdirectory to root

I want to rewrite or redirect any URLs inside a subdirectory to root, like so: www.site.com/subdirectory/item => www.site.com/item I tried this, but doesn't seem to work properly: location ...
0
votes
0answers
206 views

Hi is there any way to point subdomain & sudirectory to another hosting

I have a specific problem, I have a domain -- example domain.com & I have a subdomain -- e.g -- > subdomain.domain.com My domain.com has a dedciated IP & in a subfolder of it I have ...
0
votes
3answers
4k views

Allow subdirectory with Apache

I feel like this is a fairly simple fix and have seen similar problems when searching but haven't been able to fix it with those solutions. Basically the problem is I cannot access any subdirectories ...
0
votes
1answer
177 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 ...
1
vote
1answer
53 views

Linking domain name to subdirectory without displaying subdirectory name in address

I've got a domain name, blogdomain.com, which I've linked to otherdomain.com/blog using this .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?blogdomain.com$ RewriteRule ^(/)?$ blog ...
1
vote
4answers
5k views

/etc/hosts redirecting domain to localhost/directory

In this example i'm trying to force test.com to load localhost/project 127.0.0.1/project test.com However it doesn't work. 127.0.0.1 test.com The above works, but I really need it to go to ...
3
votes
3answers
2k views

Apache VirtualHost Proxy with a Subdirectory

Currently, we have an IIS server as our primary web server. We are implementing an Apache server in its place, but still need to have the IIS server accessible. Typically, this is a simple thing, ...
1
vote
2answers
623 views

Domain to apache, subdomain or subdirectory to tomcat

I set up an Apache2.2 and Tomcat7 Windows Server. Now I would like to use the domain for the apache and a subdomain or a subdirectory for the tomcat webapps. But I don’t know how to configure the ...
2
votes
1answer
96 views

Apache issue with VirtualHosts

I am setting up a small website in-place on the production server. While we are finalizing all the settings for the final domain we've located it on dev.domain.com, so that our visitors don't see a ...
0
votes
2answers
453 views

How to rewrite all routes not going to a specific subdirectory to a different subdirectory in nginx?

My site content (which is currently kept in /public_html loosely) is under a Mercurial repository, so I would like it to have its own directory. Since my wiki is under /public_html/wiki, I am trying ...
5
votes
1answer
5k views

Reverse proxy for a subdirectory in nginx

I want to set up a Reverse proxy on my VPS for my Heroku app (http://lovemaple.heroku.com) So if I visit mysite.com/blog I can get the content in http://lovemaple.heroku.com I followed the ...
1
vote
1answer
772 views

mod_rewrite redirects for site root and subdirectory from HTTP to SSL

Ok, so I have two sites within the same webroot — the main site (in the root) and an unrelated bunch of files in a subdirectory. We would like both of these sites to force rendering under SSL. At the ...
0
votes
2answers
132 views

Why doesn't Apache see my webmail subdirectory

I recently setup a new website on my linode box, everything is working fine. Except I can't seem to have a webmail subdirectory on my site. Whenever I goto http://mysite.com/webmail the browser takes ...
0
votes
1answer
126 views

Locally redirect Domain1.com to Domain2.com/subdir on one computer

I am running a FreeBSD server and I want to redirect a specific website domain to another domain including subdirectory. I want to bypass that domain to alter the XML results it returns. I tried the ...
1
vote
1answer
232 views

Apache authenticate group of matching subdirectory

I have a unique scenario here - one that probably has come up in the past. I have a directory that is being protected by an LDAP authentication on my Apache server. In this directory (call it /svn - ...
0
votes
2answers
137 views

nginx rewrite to alphabetized subdirectory

I'm trying to convert the following Apache mod_rewrite rule into an appropriate nginx format: RewriteCond %{REQUEST_FILENAME} (.*)/([^\/])([^\/]+)/?$ RewriteCond %1/%2/%2%3 -d RewriteRule ^/?.* ...
0
votes
1answer
787 views

nginx try_files confusion

The setup I'm going for is as follows: I want nginx to look for a file in the /test subdirectory, and if it's not there, serve it from it's normal uri. I figured this would be fairly straightforward ...
0
votes
1answer
110 views

Wordpress blog website apache and IIS subdirectory

The issue is this : Our company has a website hosted on an IIS server. I have recently been given the task to configure a WordPress server for an eventual WordPress blog so that our social media ...
0
votes
2answers
849 views

How to indicate all files in all subdirectories in unix shell?

I'm using Max OS X. I'm trying to copy all header files (.h) to specific directory (./aaa) from all subdirectories in source directory. (./src/) This command worked well. cp ./src/*/*.h ./aaa But I ...
0
votes
2answers
852 views

How do you redirect pages from a directory to a subdirectory?

I had recently moved all the content on my website from being in the www.mysite.com/shop directory to being in the root directory. This means that I needed to redirect any request to visit a page with ...
4
votes
1answer
6k views

Nginx: Rewrite rule for subfolder

I have a subdomain where I want to keep projects I am working on, in order to show these projects to clients. Here is the configuraion file from /etc/nginx/sites-available/projects: server { ...