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
ADVERTISEMENT
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
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
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
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
View Related
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
Mar 17, 2008
When I create a website in apache I have to enable php on it manually, Is there a way that I enable php by default on root of apache?
View 3 Replies
View Related
May 18, 2007
one of my customers asked me if i can enable the WildCard DNS for him on Apache.
i just want to know is it any security issue with this if i enable it? can it be a security problem for my server if i enable it?
if not, how can i enable it?
View 4 Replies
View Related
Jun 3, 2013
We have many intranet document what linked on our intranet site. We use "apache builed in" directory listing to handle documents on browser, and make accessable to users. Because this not so user friendly we try to use a template (h5ai-[URL] ....) for mod_autoindex.
Unfortunatelly if file or folder name contains special characters (like é,á,ű,ő,ú,ü,ö,ó) than get Access Forbidden - Error 403. If change the folder name, than its ok.
I use xampp. how to solve this.
View 7 Replies
View Related
Aug 24, 2007
Been searching google for a while and havn't stumbled upon anything useful.
I'm trying to have it so username.mydomain.com opens their directory inside /home/users/username
This is what I have but it doesn't seem to be working.
<VirtualHost *:80>
UseCanonicalName off
ServerAlias *.mydomain.com
ServerName *.mydomain.com
DocumentRoot /home/users/%1
</VirtualHost>
View 14 Replies
View Related
Jul 11, 2015
I have viewing the city names in my website like the following structure - [URL] ....
Here is the ,htaccess code - RewriteRule ^([^/]*)/([^/]*)/$ city.php?state=$1&city=$2 [NC]
But actually, I'm looking for to use wildcard subdomains that will rebuild the city names like the following structure-
city.mydomain.com/state/
I just need the htaccess rewrite code.
View 1 Replies
View Related
Dec 19, 2008
i have apache 2 and centos with plesk . when i see my apache error log it shows me :
[Fri Dec 19 05:56:35 2008] [error] [client ::1] Directory index forbidden by Options directive: /var/
www/html/
View 1 Replies
View Related
Sep 5, 2014
We are getting 403 for bidden error when accessing from web clients.
Here are my config files:
httpd.conf & httpd-ssl.conf files:
1) [URL] ....
2) [URL] ....
Any changes we have to make in our configuration files.
View 1 Replies
View Related
Nov 18, 2014
So I have a script running on my apache that catalogs pictures and clips. All the actual video files are located on a separate drive which is mounted in to a folder in my site. I've set apache as the owner and have the correct permissions on the mounted folder but I'm getting Forbidden errors accessing files even when on html file in the mounted folder.
I know it's a permissions issue at the disk or mounting level. The way I mount is by using this command:
mount -t ext4 /dev/sdc /var/www/html/media
View 6 Replies
View Related
Dec 18, 2012
Earlier I made a setup using UNC path in my Apache configuration. I managed to make this work. Now on another installation using Apache 2.2.22 nothing works like before.
This is how my configuration looks like ....
View 4 Replies
View Related
May 22, 2014
Should I enable output buffering and zlib compression in PHP configuration editor to increase performance?
In global php.ini I have:
output_buffering = Off
;output_handler =
zlib.output_compression = Off
;zlib.output_handler =
View 1 Replies
View Related
Sep 23, 2013
I am trying to set up log rotation on my Apache Server on Windows 2008 using the rotatelogs.exe executable. I believe I am having issues because my directory path has spaces.
From my understanding, a full path is needed for the ErrorLog but not for the CustomLog
ErrorLog "|"C:/Program Files (x86)/Apache Software Foundation/Apache2/bin/rotatelogs.exe" "C:/Program Files (x86)/Apache Software Foundation/Apache2/logs/Error/Error_%Y-%M-%D.log" 86400"
CustomLog "|bin/rotatelogs.exe logs/Access/Access_%Y-%M-%D.log 86400" common
The error that I get is:
C:Program Files (x86)Apache Software FoundationApache2.2bin>httpd.exe -k start
The system cannot find the path specified.
View 4 Replies
View Related
Dec 12, 2013
Two projects:
proj: site.loc
proj2.0: newsite.loc
They are located in different places on the file system. And i need to redirect from one project to another internally, so url for site.loc is preserved.
E.g. requesting site.loc/hey/there i need apache to serve files form proj2.0.
First, i know that on the .htaccess level we cannot use RewriteRule to file-system path (for security reasons).
Okay, an Alias is a workaround. Say I add an Alias to virtual host as following:
Code: Alias /newsite /some/path/to/proj2.0
Then if i'll add the rule to proj's .htaccess:
Code: RewriteRule ^hey/there /newsite
This will work.
But, the webroot does not work:
Code: RewriteRule ^$ /newsite
Is it i'm doing something wrong or there is some quirk about the webroot?
View 6 Replies
View Related
Jun 14, 2014
I want to select a specific file by its path using .htaccess to allow access to it.
View 1 Replies
View Related
Apr 6, 2008
2008-04-06 08:52:32.597ERRORApache Binary Path must be set properly in order replace Apache, fall back to 'Reload on configuration file change'.
2008-04-06 08:52:32.602WARN[configerver:listener] No listener is available for normal virtual host!
2008-04-06 08:52:32.604ERROR[config:template:centralConfigLog] Listener [Default] does not exist
2008-04-06 08:52:32.605ERROR[config:templateHP_SuEXEC] Listener [Default] does not exist
2008-04-06 08:52:32.605ERROR[config:template:EasyRailsWithSuEXEC] Listener [Default] does not exist
2008-04-06 08:52:32.617WARNStandard Edition only support up to 5 Apache vhosts.
I did everything on the litespeed setup I was soppose to found at their wiki site. But still I recieve these errors, LiteSpeed works on my server because httpd is disabled and LiteSpeed is responding to request now.
View 8 Replies
View Related
Jul 31, 2013
httpd server configuring.I share my files only from local disks but some of my resources are located on truecrypt secure volume.When I want to start my server now I have to mount my all drives first to have all path active. Otherwise httpd doesn't start with 'invalid path' error.My question is, how to force httpd starting without path or drive exists checking?
Platform Windows7 x64
Apache version 2.4.3
Package Xampp
View 8 Replies
View Related
Jul 10, 2014
I'm testing on Windows 7 x64 SP1.
I have downloaded httpd-2.4.9-win32.zip from VC10 Win32 link which includes IPv6 Crypto apr-1.5.0 apr-util-1.5.3 apr-iconv-1.2.1 openssl-1.0.1h zlib-1.2.8 pcre-8.34 libxml2-2.9.1 lua-5.1.5 expat-2.1.0.
I unzipped and installed on my system. Configured SSL. I installed in directory C:Apache24
View 10 Replies
View Related
Mar 13, 2013
I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I have setup my server with DDYNS through my domain name registar. Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.
I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)...
Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)
View 1 Replies
View Related
Mar 12, 2013
I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I am, however, having great difficulties doing this.
I have setup my server with DDYNS through my domain name registar.
Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.
I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.
My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)
This is annoying for others to type out and I am just wanting to make it look pretty. Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)
View 1 Replies
View Related
Jan 5, 2015
I want to permanent redirect some .html page from subdomain to main domain WordPress page,Redirect permanent /cat/FSBO76.URL....
View 1 Replies
View Related
Mar 5, 2009
These guys are atrocious.
So far:
1)I bought a vps from them, got it promptly, except it was set to the wrong port.
2)I requested it reinstalled without there 'extras' so my network admin could do it himself. They do not offer a reboot in there power panel.
3)They reinstalled it, but changed my root password, also it is still set to the wrong port.
4)I then spoke to there live support, they started talking then disappeared for about 10 minutes to chat on the phone without even telling me, leaving a paying customer sitting there thinking 'what the hell'.
5)I requested the VPS be set to my original password by email, and they haven't
I just wanted a clean VPS to do my have my own install done on... how was that so much to ask of them?
I have now sent in another password request, but my advice to you all, steer the hell away!
View 13 Replies
View Related
May 20, 2009
How i can setup a new vhost for psybnc?
(i know how to add a vhost in psybnc, /bvhost [url]... but how i can setu this vhostname?
View 1 Replies
View Related
Sep 15, 2008
I'm trying to accomplish a redirect (or rewrite) of [url]to [url]
* I got DNS *.domain.com correctly pointing to my server.
* I also created a vhost.conf inside /var/www/vhosts/domain.com/conf, and Plesk (/var/www/vhosts/domain.com/conf/httpd.include) is correctly including the file.
* even though I don't know if it's needed or not, I created in Plesk a new CNAME with value *.domain.com pointing to domain.com
in my vhost.conf I got:
ServerAlias *.domain.com
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^([^.]+).domain.com
RewriteRule (.*) /temp/%1/$1 [L]
when I try whatever.domain.com, I'm getting a 500 Internal Server Error.
View 1 Replies
View Related
Feb 7, 2008
I'm currently hosted on a friends VPS, and he has been good enough to give me his root access account details so I can mess with things if I need to. Good thing he has, too... Because I'm about to need to really mess with some things.
I've hit a brick wall, however.
The VPS is currently running php 4.3, but the CMS software that I am going to use to run my site requires PHP 5. Now, I don't want to arbitrarily update to php5 across the whole VPS, cause I dont know if thats going to knock out scripts on other vhosts. I read about the "run php5 as cgi" thing, but that doesnt really work for me, as the cms I am using has some quite in-depth url rewriting going on, and I dont want to have to make all of the php files for it end with .php5, in case that screws something up.
So, in my research, I came accross this:
wiki.apache.org/httpd/PHP4AndPHP5
The article on the apache wiki refers to a way of setting up a private server, or a VPS in this case, so that an individual vhost will use php5 as opposed to the default php4. "Great", I think... But then after loggin in to the shell and downloading the php-5.2.5 binary, I realised I dont have the first clue how I can install this, without it conflicting with the current PHP4 install, and so that it pick up on things like mySQL, and all the other libraries (gd, libxslt etc).
So, I guess my question is, does anyone know how I can accomplish this? I'm sorry if this isnt the right forum, I put it in the place that made most sense to me... Any help would be gratefully received, as I'm completely dumbfounded right now!
View 2 Replies
View Related