Apache :: Multi VHost / Single File

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


ADVERTISEMENT

Single Proc. Multi Core OR Multi Proc. Single Core

Dec 3, 2008

What is the best configuration for a dedicated server? Trying to get my head round all the terminology as fast as I can.

Multi Processor Single Core
or
Single Processor Multi Core

View 12 Replies View Related

Single Proc Multi Core Vs Multi Proc Single Core

Jan 4, 2008

This is kind of a followup of our thread
"More RAM or better CPU?" [url].

Sorry if we were supposed to post in that thread in stead, but this is a different question that in that post.

Our server is still crashing a lot and unfortunately we can't afford a multi processor with multi cores.

So the question is as follows:
For a site with a lot of database activity, what would be the best thing to go for:

a) Single processor with multiple cores, or
b) Multiple processors with a single core.

a = Intel Xeon 3060 Dual Core Conroe Processor (2.4GHz)
b = 2x Intel Dual Xeon 2.8GHz Processors

View 10 Replies View Related

Apache :: Set Up SSL (vhost) For Mailman

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

Webmail Roundcube Apache SSL Per Vhost

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

Cpanel Apache Status Vhost (unavailable)

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

Apache :: Internal Server Redirection Vhost

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

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 View Related

How To Create Multi Dns For One Domain To Multi Webhosting Servers

Jul 19, 2009

i have 100 web hosting clients that i want to move 50 clients to another server but i only now have one domain for the dns

server 1#

hostname : host01.dnsdomain.com
nameserver1 : host01.dnsdomain.com
nameserver2 : host02.dnsdomain.com

server 2#

hostname : host01.dnsdomain.com
nameserver1 : host03.dnsdomain.com
nameserver2 : host04.dnsdomain.com

and in the domain control panel i set the nameservers for the dnsdomain.com

nameserver1 : host01.dnsdomain.com
nameserver2 : host02.dnsdomain.com

and i didn't create account for it just dns only

is this a right way to create multi dns for multi webhosting servers?

and when i want to make subdomain hosting account site someting like

test02.dnsdomain.com

it didn't work

View 0 Replies View Related

Apache Multi Process Limit

Jun 9, 2007

I am in a bind with Apache's multi process limit. Let me explain what I am doing. There's this website which has career details of all the football players since the beginning of professional football. They have a simple web form which allows you to look at a player's profile by entering his name or his 7 digit numeric id number (on that website).

One of my client wants a list of all the players with a certain "flag" in their profile. So I created an automatic form submission and HTML parsing script to get details of all the players with that "flag" in their profile. Let me not go into too much details and tell you that after applying a few pattern rules to the id number, the number of possible id numbers comes to about 1 million (instead of 10^7; each field can have {0,1,2,3,4,5,6,7,8,9}=10 digits, so net combinations = 10*10*10*10*10*10*10).

Therefore, to completely automate this process I wrote a script which would generate an id number, submit the form with that id number, and parse the resulting HTML profile for the "flag". If the script finds a hit on the flag, it stores all the fields of that player in a database. This script is working absolutely fine but the speed I was getting was about one check per second which means that I would have to leave the script running for about 11 days (to process all of about 1 million checks).

So i came up with this idea to divide the check into ten parts and i created separate scripts for each part. Now basically the first script checks for the first 100 thousand combinations, the second checks for another 100 thousand combinations, and so on.

The problem is that I am able to get only two of these scripts running at the same time. So it would still take me at least 5 days to get all the results. The rest of the scripts just sit there in the server's backlog. This is definitely due to Apache's limitation to handle multiple processes. The server I am using to run this script as well the target webserver both run on Apache2. I am sure it's not a problem with the receiving server. It has to be my Apache web server which is running the scripts. I have tried using mpm_winnt (on a windows server) as well as the prefork and worker modules (on a linux server) without any luck. Has any of you ever faced the same situation?

For those concerned about the legitimacy of this work, rest assured, this is absolutely legit. There's nothing in the website's use policy which restricts somebody from doing this. Moreover, my client hired me to do this only because the website owners were not able to hand over the data he required. They gave the stupid reason that they are helpless in providing the data because they don't have a system in place which would allow them to do a search restriction!

View 0 Replies View Related

Plesk 11.x / Linux :: Deny Reading Of Single File For Ftp User

Sep 17, 2014

i have plesk 11.5.3 on Linux centOS 6, I created a ftp user on a domain folder, I need to deny this user to read a specific file .php, how can I do?

View 7 Replies View Related

Apache :: SSL Cert Files And Mod Rewrite For Multi-tenant Hosting

Feb 21, 2015

I'm trying to set up a multi-tenant web application across multiple servers and would like to provide ssl for those tenants

I know this is possible to dynamically assign ssl using mod_rewrite, but I'm worried about speed.

Does apache cache the ssl cert file(s) when using mod_rewrite, or does apache lookup the ssl file every handshake / session?

How ssl cert files work and if using mod_rewrite is a worthy approach if connection speed is important.

View 1 Replies View Related

Weird Single IP Uses Up All Apache Connections

Jul 11, 2009

Our web server encounter a problem lately, that an IP address in India repetitively sent requests that uses up all connections available in Apache. All connections appear to be in W state. The connections are not terminated by Apache even though timeout has been set to lower 30 seconds. Similarly, MySQL connections also are not dropped until Apache is restarted.

View 7 Replies View Related

2 Tomcat With Single Apache With Load Balancing

Oct 10, 2009

We want to implementing the load balancing for our domain, if the traffic is heavy and 8080 (i.e. currently integrated with apache) doesn''t serve more that time the apache will call 8081 and serve to the request without any problem.

We want to access our site www.domain.com (i.e. run on port 80). Please guide us it is possible or not?

View 2 Replies View Related

Php4 And Php5 On Single Instance Of Apache

Dec 17, 2007

I already have PHP 4 installed on my server and now i want to install php5 on same apache instance but different port.I want to configure the system so that on one port php4 runa dn on second port PHP5 run.

View 1 Replies View Related

Apache :: Two Domain Names With Single Site

Jul 7, 2015

I am currently running Apache on Ubuntu 14.04. I tried adding an alias, but it doesn't do exactly what I need. I have a single site and I need to point two domain names to it. The thing is, if someone types in www.site1.com I want it to show the url as www.site1.com and if someone types in www.site2.com I want it to continue to show www.site2.com in the URL. Right now if they type in www.site1.com it shows the first site name as the URL, but if they type in www.site2.com it changes the URL to www.site1.com. Below is what I have as my virtual host in my conf file currently.

OS - Ubuntu 14.04
Apache/2.4.7 (Ubuntu)

View 1 Replies View Related

Apache :: Redirect Every Single Page From Old Subdomain

May 12, 2015

Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).I need to redirect page from old subdomain to a new subdomain

Example:
esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage

Source site is very chaotic (static pages + wp pages) and there are no clear rule for redirection (no regex ).So I need to redirect every single page but syntax:

Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage doesn't work!I think "esp.site.com" in source page is not acceptable syntax..which is the correct syntax ? Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ?

View 1 Replies View Related

Apache :: 2.2.22 Picks SSL For Every Single Domain Error

Jul 3, 2014

I have one valid commercial Comodo certificate. It is correctly installed and works fine on my 443 port when I go to https://www.domain1.com

However, I have quite a few other virtual hosts that also work fine on my port 80 when I go to http://www.domain2.com then http://www.domain3.com and so on.

Now out of curiosity I have typed https://www.domain2.com and it picked up the SSL certificate from my first domain1.com when it wasn't supposed to (I guess)! It reported an error but worked! Then I tried all my other domains 3,4,5 and so on and the issue repeated.

How do I keep this single certificate to the only domain name it belongs to? It has no wild cards and is valid for only one domain name I bought it for. The example of my hosts' configuration is below:

<VirtualHost *:80>
DocumentRoot "/directory/home/place"
ServerName domain1.com
<Directory "/directory/home/place">
allow from all
Options +Indexes
</Directory>
ServerAlias www.doamin1.com
</VirtualHost>

[code]...

View 8 Replies View Related

Apache :: Proxy A Single Session Server Behind

Jan 8, 2015

I have diesel generator controller card (IB Lite made by Comap) and the built-in webserver supports only a single user/session connected.

I want to set apache in front and serve multiple connection while apache is keeping a single session with the IB Lite card in background no matter how sessions it have.

I tried ProxyPass but it doesn't seems to be a solution.

Is this possible?

View 1 Replies View Related

Apache :: Load Is Generated From One Single IP Address

Oct 3, 2013

We are using 4 apache and 8 weblogic.When little high load is coming on application (say 300 users), we are getting non-http response code (Non HTTP response code: org.apache.http.conn.HttpHostConnectException).And also all the load is generated from one single IP address.And we are using apache 2.2.

View 1 Replies View Related

Apache :: Multiple Servers On Single Linux Box Redhat

Nov 5, 2014

I need to configure multiple Apache Web Servers on redhat server. I have copied and extracted Apache 2.2 into redhat server and extracted but not able to install because I don't understand setting prefix. Please let me explain about prefix configuration and how to set it. At the same time I would like to know is it possible to setup 4 Apache Web Servers on same machine if possible then how to. Can we set up different versions of Apache HTTP Servers?

View 17 Replies View Related

Multi Core Or Multi CPU

Apr 10, 2008

I'm starting to do my homework on a dedicated server and am really not that savvy on what's best for my needs.

Firstly, I'm just trying to determine how much grunt I need and am not really sure of the benefits of multi-core vs single core vs single processor vs multi processor.

I've been running on a low density VPS with 1 Gig ram for a while and it's doing fine but won't handle this setup too much longer. My site does a very high amount of disk read/writing and for the size of my site there are a lot of database calls.

I'm thinking a multi-processor will do wonders for a database intensive site, but will a single multi-core process do fairly well also? My budget is at the low end and obviously I can afford more for a multi-core single processor.

View 9 Replies View Related

Apache :: How To Discover Which Php File Allows Malicious File Upload

Oct 10, 2014

i manage linux apache webserver with a few wordpress blogs and from time to time i see someone inject a malicious .php file into wp-content/uploads/2014/10/ directory.

i think its some bad plugin or theme, but these is more blogs, i ugrade, update, WP, but

how can i setup some monitor to tell me which php file (or even line in php file) injected that malicious .php ? I have linux root access so i can setup anything 

View 3 Replies View Related

Apache :: Every Single Webpage Visit Redirects To Webpage - Redirect Loop

Sep 1, 2014

I've been having troubles with my website recently . I installed a forum software (MyBB), and the problem started happening shortly after. I've talked to a few site admins in the MyBB community but they all say that none of MyBB's scripts are capable of doing this.

Every single webpage i visit redirects me to a webpage which then has a redirect loop. I've removed all recent changes made to my website via FTP and restarted apache, but i'm still receiving the same error. I'm not quite sure what to do.

Link to my website: ript.onl
Screenshots: [URL] ....

Every single webpage does this. I dont have any .htaccess files around and i've checked a few config files for anything out of the ordinary, but haven't seen anything.

View 3 Replies View Related

Vhost / Cirtex. My Opinion.

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

How To Setup A Vhost For Psybnc

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

Subdomains With Vhost.conf

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

Specific PHP Version For Vhost On Vps

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

Plesk 11.x / Linux :: PHP Not Loading For One Vhost

Feb 19, 2015

We have strange problem with our plesk 11.0.9 Update #62.

Have only 10 domains hosted and all except 1 is working fine.... This particular domain doesn't run PHP scripts at all and when we try to browse a php script from browser, the file starts downloading. I have tried to compare the php settings from other working vhosts but and found no change at all... tried with

/usr/local/psa/admin/bin/httpdmng --reconfigure-domain domainname-tld

/usr/local/psa/admin/bin/httpdmng --reconfigure-al

Also tried to create the vhost but no gain...

Also I tried to change the PHP setting from control panel so that the php file would be generated , but every time I reset the value, it reverts back and no value is preserved.

View 1 Replies View Related







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