Fedora :: Create Virtual Hosts For Each User On Server?

Nov 11, 2009

I am trying to create virtual hosts for each user on my server using Name-based virtual hosts and then make a symbolic link to /home/userdir/html

Here is what I have for my virtual hosts:

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin tasha@ttu.edu
DocumentRoot /home/httpd
ServerName 128.118.118.7
ErrorLog logs/error_log
CustomLog logs/common
</VirtualHost>

What do I need to add to make it follow symbolic links in /home/userdir/html?

View 4 Replies


ADVERTISEMENT

Ubuntu Servers :: Apache2: SNI & Virtual Hosts - Multiple Virtual Hosts With Ssl And Only 1 Ip Address

Jan 17, 2011

[Code]....

What I want: multiple virtual hosts with ssl and only 1 ip address: In my example: server = 192.168.227.129

[Code]....

View 9 Replies View Related

Server :: Create A Virtual User System With Mysql?

May 27, 2011

I'm using dovecot pop3 server in my website. I tried to create a virtual user system with mysql. But it didn't work. Next I tried to debug my work with reading of dovecot log. I enabled logging in it by changing this values in /etc/dovecot/conf.d/10-logging.conf:

Code:
log_path=/var/log/dov
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes

After that I tried to login to the pop3 via telnet and it failed as usual. After I checked the log file (/var/log/dov), but it does not contain any information about that failed login. Only there was some information about starting up of dovecot! Does any body know that what is the problem and why dovecot doesn't log that?

View 8 Replies View Related

Server :: Apache Virtual Host To Limit The Concurrent Connections Of Virtual Hosts?

Jul 3, 2009

apache virtual host to limit the concurrent connections of virtual hosts? Taking into account the host of each virtual user's home directory can also have more than one subdirectory, which should be restricted to a subdirectory. Is beyond the control of the operation of these sites in a subdirectory. Best local restrictions or limitations to the overall situation.

View 1 Replies View Related

Server :: Debian Lenny - All Virtual Hosts Lead To First Virtual Host

Apr 21, 2010

I'm having an issue with setting up the virtual hosts on my web server. I have 2 virtual hosts (example1.com, example2.com). example1.com works but example2.com is sent to the index file of example1.com. I did some searching on google and it seems the problem might be with my /etc/hosts file.

First virtual host that the second is also directed to...in sites-available/sites-enabled (note port 80 is blocked by my isp so I use 8080)

Code:

Second virtual host file

Code:

And my hosts file

Code:

# The following lines are desirable for IPv6 capable hosts

Also I'm using a dyndns.org...would that make a difference?

View 2 Replies View Related

Server :: Apache Virtual Hosts With IP Address?

Jul 2, 2010

What is the (officially) proper way to configure Apache so that a given IP address can have two or more virtual host names, each going to different distinct configurations (e.g. with different DocumentRoot, Alias, etc), and also do this for the IP address so that it goes to a designated configuration rather than defaulting to the first or a random host name?

Apache documentation does not appear to address this. If so, it has it hidden in a non-obvious place.

View 7 Replies View Related

Server :: Cannot Access Other Virtual Hosts On Ubuntu

May 19, 2011

I have been searching and reconfiguring for 6 days now and have lost several clumps of hair.. PROBLEM: I want 2+ virtual hosts on my ubuntu server (1 ip) BUT - Only the first "alphabetically" listed sites-enabled shows.

000-default
[URL]

Individually they all work (if i a2dissite for each leaving 1)

[Code]....

it seems i have tried everything that everyone else is having issues with but nothing seems to fix mine. Possibilities:

1) EC2
2) Permissions on the files - I changed everything to the apache2 user "www-data" - no dice.
3) I am a dope...lets hope its that and one of you kind people point me to my issue.

View 4 Replies View Related

Server :: .htaccess And Name Based Virtual Hosts?

Apr 12, 2011

I have a CentOS 5.5 Server and I'm hosting 3 different Name-based Virtual Hosts. Using Joomla 1.5 for the site. Each VHost has it's own subdirectory under /var/www so I have .var/www/vhost1, /var/www/vhost2 etc.

The Code in my httpd.conf for each vhost is : -

# Virtual host vhost1.site.com
<VirtualHost 192.168.0.203:80>
DocumentRoot /var/www/vhost1
ServerName vhost1.site.com
ServerPath vhost1/

[Code]...

It works perfectly, but I'm getting a lot of unwelcome spiders and bad bots trawling for MP3 files because there are a few MP3 files on one the sites. I've added all the Bad Bots to my .htaccess file and now I need to know if I should make only ONE .htaccess and put it under /var/www OR create a different .htaccess file for each vhost (this would be an ideal solution, but I'm not sure if it can be done).

View 2 Replies View Related

Server :: Send Mail From Different Virtual Hosts On One Ip?

Jan 15, 2010

Ok I have 5 virtual hosts on one IP but only 1 domain (forwardconference.org) will be sending emails out to people....confirmations and such. The other sites may send out some emails...like back to my personal email address not hosted on this server. That works. But to people on like aol or yahoo or hotmail....it doesnt

Problem is, most people are not getting the emails. Mailq reports them being deffered for some reason. I'm having our ISP setup a PTR to forwardconference.org....does this mean all my emails from either of the sites....even if I put a different FROM: address in the php mail script...will come from [URL]? Or should I just setup my server as its own SMTP server?

View 3 Replies View Related

Server :: SSL Certificates And Virtual Hosts On Apache

Jan 9, 2011

I run couple of sites on a virtual hosting environment and I am in need of adding additional SSL for a different domain name. From what I read on some forum topics indicate that SSL cert requires different IP address. meaning one cert for each IP. Is this true? If so, then I'm having some difficulties understanding the benefits of running virtual host if a server can't host multiple secured site through single IP. Any way to run multiple ssl site within virtual host environment. I'm hoping for a possible workaround.

View 3 Replies View Related

Server :: SSL Virtual Hosts - CSS And IE Mixed Content?

Mar 8, 2010

I have several websites available via both HTTP and HTTPS, with images served from a separate virtual host. This breaks in IE because the images are loaded by the CSS, and because they're in a separate Virtual Host, I have to use absolute paths in the CSS.

Example:

[URL]

Renders in IE like this:

[URL]

The issue being that the wiki.archserver.org is being served via SSL, but the header logo is served by img.archserver.org and the CSS uses the absolute path [URL] to load the logo. So, the only solutions I can see are:

1) Change the CSS to always use SSL. This will slow down the site, increase load on the server and is generally a poor-practise as a "solution"

2) Maintain 2 copies of the CSS, serving a HTTP version to HTTP requests, and HTTPS version to HTTP. This creates a management overhead which is less than desirable.

3) Create an Alias in Apache to send requests for [URL] to [URL] internally then rewriting the CSS to use relative paths.

4) Screw IE; it works in Firefox, Chrome and every other browser AFAIK. The sites are for a Linux project anyway.

View 7 Replies View Related

Server :: Apache 2.2 Virtual Hosts - Defaulting To Main?

Jul 19, 2011

First of all I've looked at "similar threads" without finding an answer. I'm setting up Name-based VH using an IP as the base. The OS is CentOS 5.4

My config looks like:

NameVirtualHost 12.345.678.90:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.

[Code]...

The names are of course not in DNS so to access the server from my local Windows machine I had to use the hosts file: 12.345.678.90 dev1 Entering dev1 in my browser *does* take me to the server but it takes me to default VH (DocumentRoot /var/www/html). What am I overlooking?

View 14 Replies View Related

Server :: Apache Virtual Hosts - Ubuntu Desktop?

Jul 15, 2011

I have just setup two Apache virtual hosts and I was wondering how I could link them to different domains so that they could be accessed from another machine.

View 7 Replies View Related

Server :: Edit Apache Virtual Hosts Successfully - But Can't Add A New One?

Oct 28, 2010

This really has me baffled! I'm running Apache 2.2 on Windows Server 2003 (I know, my first blunder). I can edit existing virtual hosts without a problem, for example, I can change this existing vhost to point to a different document root and it works fine:

<VirtualHost *:80>
ServerName existingsubdomain.mydomain.net
DocumentRoot "C:/Inetpub/wwwroot/mydirectory"
</VirtualHost>

But the moment I try to add a new virtual host, it doesn't get recognized! When I try to browse to it in a browser, I get a "Server not found: Firefox can't find the server at newsubdomain.mellemallc.net."

<VirtualHost *:80>
ServerName newsubdomain.mydomain.net
DocumentRoot "C:/Inetpub/wwwroot/mydirectory"
</VirtualHost>

Can anyone point me in the right direction as to why this may be happening?

View 4 Replies View Related

Server :: Virtual Hosts On LAMP Not Going To Right Directory Externally?

Jul 16, 2011

I created LAMP server with a wordpress site. I created a sites-available file for the wordpress file pointing to the wordpress directory. Within my server it goes to the site properly. However I also made this server a DNS server, had another test pc use it as a DNS server and it only got the default apache page unless I added /wordpress to the url which makes it point to the directory within /var/www/ that it belongs, but then the wordpress links don't work and this is not what I want it to do anyway. I do not understand why it is working properly internally but not externally. It makes me think maybe the sites-available file is not allowing outside access appropriate permission to use it or something. Can somebody please point me in the right direction I have been working on this for weeks and I am starting to get really frustrated with it. Tell me what config files can help you figure out my issue. Also I eliminated the default index.html file so it wouldn't use it, then placed the index.php file from wordpress in /var/www/ root but in that configuration it doesn't load anything by default but will still work if you point to /wordpress. I believe I have to make some change to my apache2 configs to allow outside PCs to be pointed to the right root directory for the virtual host like is being done internally, I just don't know where to start.

[Code]...

View 4 Replies View Related

Server :: Separate SSL Sites For Multiple IP / Name Based Virtual Hosts?

Feb 15, 2011

I have set up a SSL site for my default Apache server. But I want to set up multiple SSL sites for multiple IP based as well as Name based Virtual hosts. Is there a way where in I can include definitions for SSL certificates and keys within the Virtual Host directive in the httpd.conf, so that I can specify separate key and cert file for every Virtual Host.

View 11 Replies View Related

Server :: Nginx Virtual Hosts & Wordpress Rewrite Rules?

Sep 14, 2010

I'm trying to set up my web server (nginx) as a catchall virtual host, as per an example that can be seen here: [URL].. (It's the Wildcard Subdomains in a Parent Folder example). Now, here's my issue. I use Wordpress on the coburndomain.org domain. I have pretty URLs enabled, that make my Wordpress articles look like this:[URL].. At the moment, nginx is reporting 500 Errors, saying that index.php is not a directory. What I want to do is make a rewrite rule that allows me to use the above URL example with nginx.

I followed this tutorial to do so: [URl].. , but I'm not sure how to apply it to my setup. Here's my configuration files from Debian Squeeze with Nginx onboard:

[Code]...

View 1 Replies View Related

CentOS 5 Server :: Apache Two Virtual Hosts On A Single IP Address?

Feb 22, 2011

I am trying to run two web servers (Virtual Hosts) on a single Linux Centos 5.5 box with a single IP address 192.168.0.182. I did all the pre-installation requirements such yum install mysql, yum install mysqladmin, service httpd start, service mysqld start etc etc.In /var/www/html directory, I have two folder called server1 and server2. These two folders have the necessary web server php script files and folders. I opened the browser and managed to install the script on one web server successfully. When I put the IP address 192.168.0.182 on the browser address bar, the page loads without any problem. Now I would like to be able to install the other web server script and I don't know how to?Here is my httpd configuration;

<VirtualHost *>
DocumentRoot /var/www/html/server1
ServerName development.mysite.com

[code]....

View 15 Replies View Related

Debian Configuration :: Both HTTP And HTTPS On Same Server? (Apache Virtual Hosts)

Oct 30, 2015

How to best manage both http and https pages on the same apache-server without conflicts. For example, if i have both 000-default.conf and 000-default-ssl.conf pointing to mydomain.com, and don't want users who visit mydomain.com without specifically type the https-prefix to be redirected to the https-page - how to handle users using browserplugins such as https-everywhere etc?

Another option would be to create a subdomain ssl.mudomain.com and have users who want to reach the ssl site to have to type ssl. I have tested several things with https everywhere enabled in my own browser, and it seems really hard to make this working the way i want, in one way or another i always end up getting redirected to the ssl-site automatically.

The reason i need this to work is because i run one site that i don't care much about SSL, that is the "official" part of that site, and i also host some things for friends and family on the SSL-part. This would not have been a problem if it wasn't that i use self-signed certificates for my ssl-site and the major user become afraid when a certificate-warning pops up in their browser and therefor leave the site.

View 2 Replies View Related

Server :: Create A Virtual Host And Virtual Ip In Proftpd Centos?

Nov 22, 2010

I want to create a virtual host and virtual ip in proftpd linux centos. can anyone please help me on this,I'm new in linux.

View 8 Replies View Related

Fedora Servers :: Add Virtual Hosts To Xampp?

Aug 16, 2011

I'm new to fedora and linux. I'm trying to add virtual hosts to my xampp server in /etc/hosts I added :

Code:
127.0.0.1 localhost.localdomain testsite
and in /opt/lampp/etc/extra/httpd-vhosts.conf added this:
Code:
<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /opt/lampp/htdocs/testsite

[Code]...

View 9 Replies View Related

Red Hat / Fedora :: Create A User For FTP Server Which Has No Privileges To Access?

Jun 30, 2010

I configured a FTP Server on Fedora Now I want to create a user for FTP Server which has no privileges to access any things outside his home directory .

Username is "Test1"
Home directory is /var/ftp/Test1
chmod 700 /var/ftp/Test1
chown Test1 /var/ftp/Test1

View 1 Replies View Related

Ubuntu :: Configuring Webmin Postfix Server With Multiple Postfix Virtual Hosts?

Sep 25, 2010

is there any HOWTO for configuring Webmin Postfix server with multiple postfix virtual hosts? Seems to be a tough challenge to set it up without any easy manual..

View 1 Replies View Related

Server :: Create A Virtual NIC For PPTPd?

Jan 4, 2011

I'm trying to setup PPTPd on my dedicated server and the IP ranges i put the in the config have to exist in one of the network interfaces otherwise the connection wont work,I currently only have eth0 with the direct internet IP which i can't use for this purpose,I need a new NIC with a LAN IP for this and I have no clue.

View 1 Replies View Related

Server :: Create Postfix Virtual Users Without Dovecot

May 28, 2010

I just want to create virtual postfix users using static external file, without using dovecot as MDA or mysql db.

View 1 Replies View Related

Server :: Right User For Copying Files Into /var/www/virtual?

Mar 10, 2011

i would like to copy all files from my server001 (/var/www/vhosts/*/httpdocs/) to my server002 (/var/www/virtual/*/htdocs/) i would do it via rsync... but i dont want to do it as root! what would be the right user with which I should login myself via rsync? www-data? its the group of each domain-folder...

Quote:

server002:/var/www/virtual# ls -lh
insgesamt 4,0K
drwxrwx--- 10 vu2001 www-data 4,0K 9. Mär 09:58 domain.com
server002:/var/www/virtual#

but the files inside htdocs are only accessable for the user!

Code:

server002:/var/www/virtual/domain.com/htdocs# ls -lh | grep index.php
-rwxr-xr-x 1 vu2001 vu2001 397 24. Feb 23:30 index.php
server002:/var/www/virtual/domain.com/htdocs#
server002 will be the backup-server if the server001 is down!

View 3 Replies View Related

CentOS 5 Server :: Create Qcow2 Image In 5.5 Virtual Machine Manager?

May 18, 2010

I'm trying to set up a virtual machine environment in Centos5.5. My hardware fully supports virtualization, and I'm running qemu as the hypervisor with Virtual Machine Manager as the GUI to manage and create VMs. Host hardware is a Dell PowerEdge T710, with a quad core Xenon processor and four 1TB disks in a raid 6 array.

Within the Virtual Machine Manager when trying to create a new VM, there is the option to not "allocate entire virtual disk now". What format is created when you "allocate entire virtual disk now" and when you don't?

I want to create a qcow2 image format, but it doesn't look like it is supported. Does anybody know how to create a VM with a qcow2 image format?

When you create a blank disk with "qemu-img create -f qcow2 disk.qcow2 3700G", it indeed does create a qcow2 image. However, Virtual Machine Manager is unable to read these images, claiming that it is 15 megs or so in size (which is what it actually occupies in host disk space until you try and put a VM into it).

View 1 Replies View Related

Ubuntu Servers :: Virtual Hosts Don't Work With Any Web?

Jan 21, 2010

I don't know if I'm posting in the right box - I'm new to both Ubuntu and this forum so please bear with me. Thing is, I spent almost 2 days trying to find a web server that meets my likes. I tried like almost every well known web server, be it Apache, Lighttpd, Nginx, and Cherokee, one by one. For each I was successfully in getting PHP up and running, but was never able to configure the virtual hosts.

I'm 99.99% sure that I - for multiple times - followed correctly the online how-to's. Especially Cherokee, I did exactly the screencast (which is just 2 steps, as Cherokee has a GUI for virtual server setups). Strange enough, with each web server the virtual hosts thing never worked for me. I always received "Server not found" error. I tried with Firefox and Google Chrome. Currently I'm on an Ubuntu 9.10 (32bit) box - I reinstalled this one over the 64bit, to vain.

Don't know if it's a problem with my DNS, but I have another machine running Windows 7 with the same DHCP settings (means same DNS and IP range). Virtual hosts work fine there on an XAMPP installation.

View 9 Replies View Related

Ubuntu Servers :: Apache Virtual Hosts Behind NAT?

Aug 18, 2010

I'm wondering if this is even possible before I start the learning curve with Ubuntu and apache virtual hosts.

I have a static external IP address that resolves to the various domain names I will be using. I have a web server inside my network with a private IP address and any http request to the firewall is forwarded to the webserver on the appropriate port. This setup works well when using the same web page/configuration for all of the domains.

Will it be possible to use named virtual hosts in this configuration, or will the NAT'ing interfere?

View 9 Replies View Related

Ubuntu Servers :: Cannot Access Other Virtual Hosts

May 19, 2011

I have been searching and reconfiguring for 6 days now and have lost several clumps of hair.. PROBLEM: I want 2+ virtual hosts on my ubuntu server (1 ip) BUT - Only the first "alphabetically" listed sites-enabled shows.

[Code]...

[Code]...

View 6 Replies View Related







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