Ubuntu :: Using Domain To Host Second Site Separate From First
Mar 24, 2010
I have a Ubuntu Server that is correctly set up and has been working for awhile. It currently has a domain (Registered by GoDaddy) and it is used as the main. I just bought another domain (From GoDaddy) and I want it to connect to the same server but a different section to host a second site completely separate from the first.
So this is how I want it to be setup:
Domain1 = /var/www/
Domain2 = /var/www/website2
When I put Domain1 in the url like www.domain1.com it will connect to /var/www/
When I put Domain2 in the url like www.domain2.com it will connect to /var/www/website2
In the office there is a local network with samba+openldap PDC. The local domain name is company.net. The company desided to create a corporate Website on a remote hosting and desided that the site's domain should be company.net which is same as local network's domain name. So now it is not possible to reach that corporate website from within the company's local network because, as I guess, bind9 which is installed on above menioned PDC looks for company.net on a local webserver. Is there a possibility to let people from this local network browse the remote site?
I have installed CentOS 5.4 machine named test.example.com (192.168.1.1)File /etc/hosts contains:127.0.0.1 test.example.com test localhost.localdomain localhostI have read that the loopback addres should not be assigned to host name,only to localhost and the host name should be assigned to 192.168.1.1, like this:127.0.0.1 localhost.localdomain localhost192.168.1.1 test.example.com testIs there any reason why it should be one or another way?
I am starting to develop websites in Ubuntu. I have set up apache server, php, mysql, and phpmyadmin. I have also set up a local domain for the site. Everything works great with html files, but how do I get Firefox to open .php files instead of trying to save them.
I am running ubuntu 10.04, and I have one website up and running 1 website.from my local server, from my local computer on the same network I can type in the ip address of my server and I do get the default webserver is running page, however when I try to connect to my domain, it cannot find it. I have run a ping, and it reached it just fine.
I find it hard to explain but I will try. I have a small network using CentOS 5.4 with a static ip and I am running a web server which has an local ip of 10.1.10.100 and has the domain name of www.inwoon.net.My problem is I have other computers on the same network and can only access the web server using 10.1.10.100 instead of www.inwoon.net. am finding it to be impossible to test my web site work using external links that call back to my site
My test server is going well for the past 2 months. I have learned a lot from searching the net for how to's and forums on questions I have. My next task on the to-do list is enabling ssl on my mail server. I have the ssl setup with an automatic redirect from http to https.It is working fine with a minor issue.I have 2 domains and several subdomains on the server. Since I have enabled ssl, it seems for any of the domain/subdomain links I type in with a https://, it takes me to my mail server site. How can I have it set to only one secure link to my mail server?
i have been trying to host a site with lampp in ubuntu and i am pretty lost and sick of all the error messages, maby somone could give me a step by step guide how to do it. or got a bether option ?
I have installed Apache on RHEL 5 ( my personal machine)Now i want to host web site on it for my personal use. Please tell me the step how to do this ?
Is it possible to use ubuntu 10.04 lts desktop version as a web host for a production site?. If it is possible, can anyone give me links on how to do it?
It is possible for apache2 (debian) to host a frontpage page? All links I found from google and microsoft said that frontpage is dead. How can I host the site ?
I have an ubuntu 8.04 server running a couple of web sites using virtual hosts , apache2, mysql and php. I have noticed that by default php sessions are created in /var/lib/php5 and all stored in plain text.
I have quickly created a php script in a separate virtual host to list and display all contents in /var/lib/php5 , and it seems incredibly easy to see what details the other accounts are storing in sessions.
If I go to a virtual host it asks me if I want to save "index.php" (Typing in the host name followed by index.php also works). But if I go the main site it does not. This happened after an upgrade to Ubuntu 10.04
Here are some additional details - apachectl -M shows rewrite_module (shared) the host config file has AllowOverride All the dir and php5 modules are loading fine.
After struggling and googling on the internet I can't manage it to work.I have stup rsyslog to receive the logging from my firewall and it puts it into the syslog file.ut I would like to have a separate logfile for these messages.I have created the firwall.log file with owner syslog, same as for the syslog file.I already have tried to use in the /etc/rsyslog.d/10-firewall.conf the following ::msg, contains, "firewalld" /var/log/firewall.logor :msg, contains, "firewalld" -/var/log/firewall.logI don't know the difference between the "-" sign in the lines but I have seen also those kind of situations.
I also have put this line into the 50-default.conf file because I thought it wasn't seeing the 10-firewall.conf file but no work.I have added a $template HostMessages, "/var/log/%HOSTNAME%/logfile.log" in the /etc/rsyslog.conf file but neither it works.In the firewall I can see the Syslog facility is now on LOG_LOCAL0 and I can change it from LOCAL0, LOCAL1, LOCAL2, ... until LOCAL7What does these different numbers mean
Has anyone had issues installing Drupal on centos. I have copied my files into a virtual host container but cannot access the site. When I place a phpinfo file into the folder and browes to it I see that Virtual Directory Support is "Disabled" However how did the php page get shown from the same virtual directory mm I may have asked to soon.Installing Drupal on CentOS 5/Red Hat/Fedora http://drupal.org/node/32773
Domain name which is registered on the DNS for an IP and the name of the host with that IP need not be the same. am i right? I mean domain name and host name need not be the same. Is this correct?
I have a domain I have never used for some years, the registrar put some adds in it, now I have hosted and configured this domain as a VPS and have started to put files in it but when I enter the domain in the browser, it still displays the adds index of the registrar although I have my own index file in /var/www/. I thought the domain was automatically "taken over" (I do not know the correct technical expression) by the hosting company when my hosting is accepted by the host after they install a bare distro. Obviously, my expectation was incorrect and there is something else I need to do.
I'm running CentOS 5.4 with sendmail. My computer hostname is bob.domain.com. Whenever I would nc -v 127.0.0.1 25 into sendmail I would get bob.domain.com on the banner. Whenever I send out email the emails would be user@bob.domain.com. I wanted the email to show up as user@domain.com. So in the etc/mail/sendmail.cf file I changed the line
Code: Dj$w.hostname.com to this
Code: Djhostname.com Now when I enter sendmail I see domain.com in the banner so I know the change took place. However, when I send email using
Code: mail -s "test" xxx@xxx.com then email still goes out as user@bob.domain.com. What other changes do I need to make?
I'm really new to this subject. Instead of purchasing hosting services from another party, what requirements are necessary to host a domain yourself, i.e.:
1. Minimal connection speed 2. Minimal hardware requirements, e.g. disc space 3. Effort to host domain and secure Slackware 4. Will an average ISP provide sufficient reliability, i.e. uptime, and bandwidth?
I'm not to sure this is the place I should post this, but couldn't find any place for it to fit. So here is the deal..I am running 10.10 with the standard LAMP setup. I am running a drupal 7 site no problems. What I need to do is run a multi site sub directory. (domain.com/newsite). So far the best I can do is get a directory index of the second site (domain.com/newsite), but cant run the installer. (I did the symbolic link to the doc root of the drupal install.)If I type in the url domain.com/newsite/install.php I get not found. I placed an index.html test page and it renders fine. I think I'm close but just not there yet.
Any ideas from anyone? I can get Sobdomains to work fine on a test mache, but sadly I need the domain/site to work due to lack of DNS support at the moment. I tried to get some info from the drupal forum, but everything always points to subdomin setups. I also posted over there, but it seems like the forums have very little support and are a bit on the slow side.
Whenever I try to use the sudo command in the terminal I get the message unable to resolve host, then my computer name. Here's some command line output with some files which I think may be causing the problem. I have Operating Systems homework and need sudo
I want to use single label host names on my local LAN, without using any domain (at least no registered one). My machines should be named in a fashion similar to 'myserver', 'mydesktop' etc. so that i from a browser on any LAN machine may write 'http://myserver', and get the webserver on 'myserver' (so NO domain part, e.g. myserver.domain).
Do i need to create a DNS zone for each host or is there a way to put all host in a single zone, if so; which? Would such a name be considered a root domain?
While in YAST2, everything seems to save fine except for the information in the "Host Name and Domain Server Configuration" screen. I have two servers side by side, the one works perfectly fine, the one does not. I can save the IP address and changes to DHCP and Static, but when I enter in the information for the Domain Name and Host Name, I click next, it saves, but when I go back in to it, the items I set are blank again. The boxes are not greyed out, you can type information in without error. When entering YAST, it requests the root pw which also works fine. I am not using any strange characters other than letters/numbers. I am going in to the screen by clicking network devices-->Netword Card-->Host Name and Name Server.
I installed debian etch, it runs and does connect to the internet fine through a linksys router...the linksys router is connected to my cable modem...now..
I just registered for a domain name (ex. mydomainname.org) with Verio....this is where I am stuck.
I installed apache 2, a web server, file server (all seem to work) I need to know what files I need to configure to have my machine actually BE that domain name.
Ex. my linksys DHCP IP addresses, the linksys gets an IP from the cable modem...my yquestion is ONCE I register a domain name with verio...how do I configure my end so it "knows" I am that respective domain name...I think I need to configure the following, but knot sure how to do it: resolv.conf, hosts, and interface?
I have a server which runs postfix. The same physical server is running web and mail services for several (3) domains, which I have reserved for future use (nothing serious or valuable, just freetime activities). Server "physical" address (also static IP) is myhost.domain.com. Lets say the other domains it serves are first.fi, second.net ad third.com. I can receive mails OK sent to all of these, I have added those 3 "extra" domains to the mydestination line in main.cf. Sending e-mails also works fine, but the sender is [URL].. I want the sender to be firstname@first.fi
I tried setting sender_canonical_maps = hash:/etc/postfix/sender_canonical in main.cf, and sender_canonical contains:
and I run postmap /etc/postfix/sender_canonical, and e-started postfix. But if I send e-mail as user1, the sender becomes [URl].. so it re-writed the username part, but hot the hostname/domain part. I also tried setting smtp_generic_maps = hash:/etc/postfix/generic but the results were similar. What do I need to do to re-write sender for user1 (regardless of host/domain) to Firstname1@first.fi?
i am trying to get postfix to relay through my isp's smtp server, but i am getting an error.Host or domain name not found. Name service error for name=mail.grandecom.net type=A: Host not found, try again...i can send mail inside my domain, but when i try to send an email to a test gmail address i find the above error in the log.
we have access to one domain name , 1 internet ip address and may servers hosting different part of site. I want them all to be accessed via same web site . some of the server in our network are embedded devices.they have their specific utility being hosted on that machine. So the severs are bound to be distributed . I just wanted to know how can I access them via single ip, domain name.
I have setup a home based web server to host a photo blog for myself and my friends. I will be running wordpress and possibly a phpbb3 forum. I'd like to open this to discuss server administration, server setup, and server maintenance. However, I have a pretty good start on all of those but serving a domain name to my static ip. Here my static ip is 24.10.202.144. I registered a domain through [URL]... It appears that I have the domain working to forward to my ip. However, I am still getting this output file from apache.
[code]...
I have tested the domain name across a few different computers on different ips. It works appropriately. I just want to make sure I have it set correctly on the (apache) server side of things. Then I can get more into Zone Editing etc.
I am managing a Fedora dedicated server with Plesk 9 and just recently moved the email for one of the domains on the server to Google Apps for business. Unfortunately, I cannot get email messages from the website forms to deliver to addresses on this domain. For anyone familiar with Plesk, I have disabled mail in the hosting settings by un-checking the "Activate mail service on domain" checkbox and there are no accounts in the domain. (Other readings have indicated that this should be enough to allow mail to be directed to the appropriate server). My MX records correctly point to the google apps mail server.
I'm quite comfortable with command line, but I know almost nothing about the sendmail program or its alternatives and my attempts at researching how to set up this relay has been futile. I'm pretty sure I'm using sendmail and not qmail or anything else from what the red-hat style "alternatives" symlinks point to. I've also checked the /etc/mail/access, domaintable, mailertable, sendmail.cf, virtusertable, local-host-names, sendmail.cf, and submit.cf and most of these files are empty (except the .cf files), and the sendmail.cf and submit.cf make no reference to the domain in question.
Here is the output from a sendmail test that was was not received. (Private data omitted of course). sendmail -v xxx@yyy.com test email from yyy.com webserver. please ignore. xxx@yyy.com... Connecting to [127.0.0.1] via relay... 220 my.server.com ESMTP >>> EHLO my.server.com 250-my.server.com ..... Closing connection to [127.0.0.1] >>> QUIT
Performing the same test and sending an email to a non-hosted domain works fine.
Tearing my hair out on this one a little bit, having problems sending message from web based PHP form to user inbox.I keep getting: Undelivered Mail Returned to Sender<me@mydomain.co.uk>: Host or domain name not found. Name service error for name=mydomain.co.uk type=A: Host not found.Running these commands: