> Am 17.10.2018 um 07:01 schrieb bruce <badoug...@gmail.com>:
> 
> I have an Apache server -- http://104.248.125.83
> 
> I'm simply trying to get the two(2) sites to be accessed via two(2)
> different urls..
> http://104.248.125.83/foo
> http://104.248.125.83/oxwall
> 
> I do not have an actual FQDN, the two(2) sites are tests on the box.
> The "/foo" and "oxwall" are
> aliases within the vhost blocks.
> 
> 
> Something is obviously wrong.. No matter what I do... I'm getting the
> 1st "foo/b2evolution" site!
> Can't seem to figure out the "doh!!" issue...
> 
> The vhost files below, are included from the /etc/httpd/httpd.conf
> (listed at the end)
> 
> I thought I could run the vhost files.. didn't work.  thought I could
> try running two/separate aliases, didn't work..
> 
> I'm pretty much willing to try anything to resolve this. Given this is
> a test bo, I'm also willing to give the user/passwd if that helps..
> 
> thanks
> Any thoughts/comments...
> 
> /etc/httpd/sites-enabled/b2evolution.conf
> /etc/httpd/sites-enabled/oxwall.conf
> 
> 
> ::/etc/httpd/sites-enabled/b2evolution.conf::
> #Alias /foo /var/www/html/b2evolution
> #Alias /oxwall /var/www/html/oxwall
> 
> <VirtualHost 104.248.125.83:80>
>   ServerAdmin ad...@your-domain.com
>   DocumentRoot /var/www/html/b2evolution/
>   ServerName 104.248.125.83/b2evolution
>   #ServerAlias 104.248.125.83
>      <Directory /var/www/html/b2evolution/>
>         Options Indexes FollowSymLinks MultiViews
>         AllowOverride All
>         Order allow,deny
>         allow from all
>      </Directory>
>   ErrorLog /var/log/httpd/foo.com-error_log
>   CustomLog /var/log/httpd/foo.com-access_log common
> </VirtualHost>
> 
> 
> ::/etc/httpd/sites-enabled/oxwall.conf::
> #Alias /oxwall /var/www/html/oxwall
> 
> <VirtualHost http://104.248.125.83:80>
>   ServerAdmin ad...@your-domain.com
>   DocumentRoot /var/www/html/oxwall/
>   ServerName 104.248.125.83/oxwall
>   #ServerAlias 104.248.125.83
>      <Directory /var/www/html/oxwall/>
>         Options Indexes FollowSymLinks MultiViews
>         AllowOverride All
>         Order allow,deny
>         allow from all
>      </Directory>
>   ErrorLog /var/log/httpd/foo.com-error_log
>   CustomLog /var/log/httpd/foo.com-access_log common
> </VirtualHost>
> _______________________________________________


You are trying to run 2 name based virtual servers. This type of servers is 
using the same IP address, but different server names.

(1) you have to setup the name server of your test environment to resolve the 
names

> b2evolution

> oxwall 

to the IP address 104.248.125.83 

A "ping oxwall“ in a terminal window should get answered by  104.248.125.83


(2)
The last line in httpd.conf should contain something like
     OptionalInclude sites-enabled/*.conf

(sites-enabled is a subdir in etc/httpd)

(3)
in site-enabled there a 2 conf files:

(a) b2evolution.conf
> <VirtualHost 104.248.125.83:80>
   ServerName b2evolution
> 
>   ServerAdmin ad...@your-domain.com
>   DocumentRoot /var/www/html/b2evolution/
>  
>  
>      <Directory /var/www/html/b2evolution/>
>         Options Indexes FollowSymLinks MultiViews
>         AllowOverride All
>         Order allow,deny
>         allow from all
>      </Directory>
>   ErrorLog /var/log/httpd/foo.com-error_log
>   CustomLog /var/log/httpd/foo.com-access_log common
> </VirtualHost>

(b) oxwall.conf
> <VirtualHost 104.248.125.83:80>
    ServerName oxwall
> 
>   ServerAdmin ad...@your-domain.com
>   DocumentRoot /var/www/html/oxwall/
>   
>   
>      <Directory /var/www/html/oxwall/>
>         Options Indexes FollowSymLinks MultiViews
>         AllowOverride All
>         Order allow,deny
>         allow from all
>      </Directory>
>   ErrorLog /var/log/httpd/foo.com-error_log
>   CustomLog /var/log/httpd/foo.com-access_log common
> </VirtualHost>



Instead of repeating the IP you should write

> <VirtualHost *:80>

which makes administration of the host server a bit easier. 

Hope it helps.


Peter




—
Dr. Peter Boy
Universität Bremen
Mary-Sommerville-Str. 5
28359 Bremen
Germany

p...@zes.uni-bremen.de
www.zes.uni-bremen.de

————————————————

Are you looking for a web content management system for scientific research 
organizations?
Have a look at http://www.scientificcms.org


Are you looking for a web content management system for public administrations?
Have a look at http://www.aplaws.org & https://fedorahosted.org/aplaws/
 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to